app/Customize/Form/Type/Front/ForgotType.php line 14

Open in your IDE?
  1. <?php
  2. namespace Customize\Form\Type\Front;
  3. use Eccube\Common\EccubeConfig;
  4. use Eccube\Form\Validator\Email;
  5. use Symfony\Component\Form\AbstractType;
  6. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  7. use Symfony\Component\Form\FormBuilderInterface;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. /**
  10.  * Class ForgotType
  11.  */
  12. class ForgotType extends AbstractType
  13. {
  14.     /**
  15.      * @var EccubeConfig
  16.      */
  17.     protected $eccubeConfig;
  18.     /**
  19.      * ForgotType constructor.
  20.      *
  21.      * @param EccubeConfig $eccubeConfig
  22.      */
  23.     public function __construct(EccubeConfig $eccubeConfig)
  24.     {
  25.         $this->eccubeConfig $eccubeConfig;
  26.     }
  27.     /**
  28.      * {@inheritdoc}
  29.      */
  30.     public function buildForm(FormBuilderInterface $builder, array $options)
  31.     {
  32.         $builder->add('login_email'EmailType::class, [
  33.             'attr' => [
  34.                 'maxlength' => $this->eccubeConfig['eccube_stext_len'],
  35.             ],
  36.         ]);
  37.     }
  38.     /**
  39.      * {@inheritdoc}
  40.      */
  41.     public function getBlockPrefix()
  42.     {
  43.         return 'forgot';
  44.     }
  45. }