<?php
namespace Mm\Beton\Planungsatlas\AtlasBundle\Form;
use Mm\Beton\Planungsatlas\AtlasBundle\Form\Model\ResetPassword;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
class ResetPasswordType extends AbstractType {
public function buildForm( FormBuilderInterface $builder, array $options ) {
$builder
->add( 'username', EmailType::class, [
'attr' => [
'placeholder' => 'Email Address',
'class' => 'input-text'
]
]
);
}
public function configureOptions( OptionsResolver $resolver ) {
$resolver->setDefaults( [
'data_class' => ResetPassword::class,
'csrf_protection' => true,
] );
}
}