src/Form/Type/ForgotPasswordType.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Form\Type;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\Extension\Core\Type\TextType;
  5. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  6. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  7. use Symfony\Component\Form\FormBuilderInterface;
  8. use Symfony\Component\OptionsResolver\OptionsResolver;
  9. use Symfony\Component\Validator\Constraints\Email as EmailConstraint;
  10. class ForgotPasswordType extends AbstractType
  11. {
  12.     public function buildForm(FormBuilderInterface $builder, array $options)
  13.     {
  14.         $builder
  15.             ->add('email'EmailType::class, [
  16.                 'constraints' => [
  17.                     new EmailConstraint()
  18.                 ],
  19.             ])
  20.             ->add('send'SubmitType::class, ['label' => 'Send'])
  21.         ;
  22.     }
  23. }