src/Form/ResetPasswordType.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  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\Validator\Constraints\NotBlank;
  7. class ResetPasswordType extends AbstractType
  8. {
  9.     /**
  10.      * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
  11.      * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification
  12.      * @param FormBuilderInterface $builder
  13.      * @param array                $options
  14.      */
  15.     public function buildForm(FormBuilderInterface $builder, array $options): void
  16.     {
  17.         $builder
  18.             ->add('email'TextType::class, [
  19.                 'attr' => [
  20.                     'placeholder' => 'E-Mail',
  21.                     'class' => 'col'
  22.                 ],
  23.                 'label' => false,
  24.                 'mapped' => 'false',
  25.                 'constraints' => new NotBlank(),
  26.             ]);
  27.     }
  28. }