code: public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder->add('email', EmailType::class, array('required' => true))
              ->add('nom', TextType::class, array('required' => true))
              ->add('prenom', TextType::class, array('required' => true))
              ->add('password', RepeatedType::class, array(
                  'type' => PasswordType::class,
                  'invalid_message' => 'Les mots de passe doivent correspondrent.',
                  'options' => array('attr' => array('class' => 'password-field')),
                  'required' => true,
                  'first_options' => array('label' => 'Nouveau mot de passe'),
                  'second_options' => array('label' => 'Répéter le mot de passe')))
              ->add('username', TextType::class, array('label' => 'Pseudo', 'required' => true));
      }
docs: {@inheritdoc}