<?php
namespace Diplix\KMGBundle\Form;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\Email;
class ForgotPasswordForm extends BaseAbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('email',TextType::class, array( 'required'=>true,'constraints' => array ( new Email() ),
'mapped'=>false));
$this->addDefaultSubmitButton($builder,"button.request-new-password");
}
public function getName()
{
return 'forgotpassword';
}
}