src/Form/ResetPasswordWithEmailType.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use App\Entity\Utilisateur;
  4. use Symfony\Component\Form\AbstractType;
  5. use Symfony\Component\Form\Extension\Core\Type\PasswordType;
  6. use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
  7. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  8. use Symfony\Component\Form\Extension\Core\Type\TextType;
  9. use Symfony\Component\Form\FormBuilderInterface;
  10. use Symfony\Component\OptionsResolver\OptionsResolver;
  11. class ResetPasswordWithEmailType extends AbstractType
  12. {
  13.     public function buildForm(FormBuilderInterface $builder, array $options)
  14.     {
  15.         $builder
  16.             ->add('email'TextType::class,
  17.                 array(
  18.                     'attr' => array(
  19.                         'label' => 'E-mail',
  20.                     )
  21.                 )
  22.             )
  23.             ->add("submit"SubmitType::class, [
  24.                 'attr' => ['class' => 'btn btn-success'],
  25.                 'label'=> "reinitialisationMotDePasse",
  26.             ])
  27.         ;
  28.     }
  29.     public function configureOptions(OptionsResolver $resolver)
  30.     {
  31.         $resolver->setDefaults([
  32.             'csrf_protection'   => false,
  33.         ]);
  34.     }
  35. }