src/Form/Security/ForgotPasswordForm.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Form\Security;
  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\Validator\Constraints\Email;
  7. class ForgotPasswordForm extends AbstractType
  8. {
  9.     public function buildForm(FormBuilderInterface $builder, array $options)
  10.     {
  11.         $builder->add('email'EmailType::class, [
  12.             'label' => 'E-mail address',
  13.             'attr' => ['autocomplete' => 'off'],
  14.             'constraints' => [new Email()],
  15.         ]);
  16.     }
  17. }