src/Form/UserAccountForgotType.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use App\Entity\User;
  4. use Symfony\Component\Form\AbstractType;
  5. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  6. use Symfony\Component\Form\FormBuilderInterface;
  7. use Symfony\Component\OptionsResolver\OptionsResolver;
  8. class UserAccountForgotType extends AbstractType
  9. {
  10.     public function buildForm(FormBuilderInterface $builder, array $options)
  11.     {
  12.         $builder
  13.             ->add('email'EmailType::class)
  14.         ;
  15.     }
  16.     public function configureOptions(OptionsResolver $resolver)
  17.     {
  18.         $resolver->setDefaults([
  19.             'data_class' => User::class,
  20.         ]);
  21.     }
  22. }