src/Form/Account/LostEmailType.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Form\Account;
  3. use App\Actimage\CaptchaBundle\Form\Type\ActimageCaptchaType;
  4. use App\Form\AbstractFrontType;
  5. use EWZ\Bundle\RecaptchaBundle\Form\Type\EWZRecaptchaType;
  6. use Symfony\Component\Form\Extension\Core\Type\IntegerType;
  7. use Symfony\Component\Form\Extension\Core\Type\TextType;
  8. use Symfony\Component\Form\FormBuilderInterface;
  9. use Symfony\Component\Validator\Constraints\IsTrue;
  10. use Symfony\Component\Validator\Constraints\NotBlank;
  11. class LostEmailType extends AbstractFrontType
  12. {
  13.     public function buildForm(FormBuilderInterface $builder, array $options): void
  14.     {
  15.         $builder
  16.             ->add('connexionId'TextType::class, [
  17.                 'label'       => 'account_creation.step1.form.connexion_id.label',
  18.                 'required'    => true,
  19.                 'constraints' => [new NotBlank()],
  20.             ])
  21.             ->add('customerNumber'IntegerType::class, [
  22.                 'label'       => 'account_creation.step1.form.customer_number.label',
  23.                 'empty_data'  => null,
  24.                 'required'    => true,
  25.                 'constraints' => [new NotBlank()],
  26.             ])
  27. //            ->add('recaptcha', EWZRecaptchaType::class, [
  28. //                'label'       => false,
  29. //                'mapped'      => false,
  30. //                'required'    => true,
  31. //                'constraints' => [new IsTrue()],
  32. //            ]);
  33.             ->add('captcha'ActimageCaptchaType::class, [
  34.                 'label'       => false,
  35.                 'mapped'      => false,
  36.                 'required'    => true,
  37.             ]);
  38.     }
  39. }