src/Infrastructure/Form/Security/AskPasswordType.php line 12

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Infrastructure\Form\Security;
  4. use Symfony\Component\Form\AbstractType;
  5. use Symfony\Component\Form\Extension\Core\Type\TextType;
  6. use Symfony\Component\Form\FormBuilderInterface;
  7. use Symfony\Component\Validator\Constraints\NotBlank;
  8. final class AskPasswordType extends AbstractType
  9. {
  10.     public function buildForm(FormBuilderInterface $builder, array $options): void
  11.     {
  12.         $builder->add('codeClient'TextType::class, [
  13.             'label' => 'Numéro de client',
  14.             'constraints' => [
  15.                 new NotBlank(),
  16.             ],
  17.         ]);
  18.     }
  19. }