src/Form/ForgotFormType.php line 10

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