src/Form/Main/RecoverPasswordType.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Form\Main;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\Extension\Core\Type\TextType;
  5. use Symfony\Component\Form\FormBuilderInterface;
  6. use Symfony\Component\OptionsResolver\OptionsResolver;
  7. /**
  8.  * Class RecoverPasswordType.
  9.  */
  10. class RecoverPasswordType extends AbstractType
  11. {
  12.     /**
  13.      * @param FormBuilderInterface $builder
  14.      * @param array $options
  15.      */
  16.     public function buildForm(FormBuilderInterface $builder, array $options): void
  17.     {
  18.         $builder
  19.             ->add('login'TextType::class, [
  20.                 'label' => 'global.login',
  21.                 'label_attr' => [
  22.                     'class' => 'd-none',
  23.                 ],
  24.                 'attr' => [
  25.                     'placeholder' => 'global.login',
  26.                 ],
  27.             ])
  28.         ;
  29.     }
  30.     /**
  31.      * @param OptionsResolver $resolver
  32.      */
  33.     public function configureOptions(OptionsResolver $resolver): void
  34.     {
  35.         $resolver->setDefaults([
  36.             // Configure your form options here
  37.         ]);
  38.     }
  39. }