src/UI/Merchant/Form/Type/ForgotPasswordType.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\UI\Merchant\Form\Type;
  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\Validator\Constraints\Email;
  8. use Symfony\Component\Validator\Constraints\NotBlank;
  9. class ForgotPasswordType extends AbstractType
  10. {
  11.     public function buildForm(FormBuilderInterface $builder, array $options): void
  12.     {
  13.         $builder
  14.             ->add('email'EmailType::class, [
  15.                 'label' => false,
  16.                 'attr' => [
  17.                     'placeholder' => 'Email',
  18.                 ],
  19.                 'constraints' => [
  20.                     new NotBlank(),
  21.                     new Email(),
  22.                 ],
  23.             ])
  24.         ;
  25.     }
  26. }