$builder->
add('salutation', SalutationType::
class,
[ 'constraints' =>
[new NotBlank(['message' => null
])],
]);
} $builder->
add('title', TextType::
class);
$builder->
add('firstname', TextType::
class,
[ 'constraints' =>
[new NotBlank(['message' => null
]),
new Regex([ 'pattern' => self::DOMAIN_NAME_REGEX,
'match' => false,
'message' =>
$this->
getSnippet(self::SNIPPET_URL
),
])],
]);
$builder->
add('lastname', TextType::
class,
[ 'constraints' =>
[new NotBlank(['message' => null
]),
new Regex([ 'pattern' => self::DOMAIN_NAME_REGEX,
'match' => false,
'message' =>
$this->
getSnippet(self::SNIPPET_URL
),
])],
]);