Deprecated: Constant E_STRICT is deprecated in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/symfony/error-handler/ErrorHandler.php on line 58
Deprecated: Constant E_STRICT is deprecated in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/symfony/error-handler/ErrorHandler.php on line 76
Deprecated: Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $registry as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46
Deprecated: Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $expressionLanguage as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::__construct(): Implicitly marking parameter $twig as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php on line 39
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $language as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $trustResolver as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $roleHierarchy as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $tokenStorage as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43
Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/sensio/framework-extra-bundle/src/EventListener/IsGrantedListener.php on line 33
Deprecated: libphonenumber\PhoneNumberUtil::getInstance(): Implicitly marking parameter $countryCallingCodeToRegionCodeMap as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 426
Deprecated: libphonenumber\PhoneNumberUtil::getInstance(): Implicitly marking parameter $metadataLoader as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 426
Deprecated: libphonenumber\PhoneNumberUtil::getInstance(): Implicitly marking parameter $metadataSource as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 426
Deprecated: libphonenumber\PhoneNumberUtil::parseAndKeepRawInput(): Implicitly marking parameter $phoneNumber as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 1581
Deprecated: libphonenumber\PhoneNumberUtil::findNumbers(): Implicitly marking parameter $leniency as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 1599
Deprecated: libphonenumber\PhoneNumberUtil::maybeExtractCountryCode(): Implicitly marking parameter $defaultRegionMetadata as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 2036
Deprecated: libphonenumber\PhoneNumberUtil::parse(): Implicitly marking parameter $phoneNumber as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 3177
Deprecated: Doctrine\Bundle\MigrationsBundle\Collector\MigrationsCollector::collect(): Implicitly marking parameter $exception as nullable is deprecated, the explicit nullable type must be used instead in /home/u131790682/domains/brainsensetech.com/public_html/dev-env-portail-innovation-ansuten/vendor/doctrine/doctrine-migrations-bundle/Collector/MigrationsCollector.php on line 30 Symfony Profiler
use Symfony\Component\Validator\Constraints\Email;
use Symfony\Component\Validator\Constraints\Regex;
use Misd\PhoneNumberBundle\Form\Type\PhoneNumberType;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use App\Form\DataTransformer\StringToPhoneNumberTransformer;
/**
* Formulaire de création d'un compte utilisateur
*/
class UserCreateAccountType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('name', TextType::class, [
'label' => "Nom et Prénom",
"attr" => ['class' => "form-control", 'placeholder' => "Nom et Prénom"],
'constraints' => [
new NotBlank([
'message' => "Saisissez votre nom et prénom"
]),
// new Regex("/^[a-zA-Z\s'ÀÂÉÊÈËÌÏÎÔÙÛÇÆŒàâéêèëìïîôùûçæœ]{5,100}$/i","Le nom et prénom ne doivent pas contenir de caractère speciaux (@,_,\,/,.,$, etc..) et des chiffres.")