3 namespace Rapsys\UserBundle\Form
; 
   5 use Symfony\Component\Form\AbstractType
; 
   6 use Symfony\Component\Form\FormBuilderInterface
; 
   7 use Symfony\Component\OptionsResolver\OptionsResolver
; 
   8 use Symfony\Component\Form\Extension\Core\Type\RepeatedType
; 
   9 use Symfony\Component\Form\Extension\Core\Type\PasswordType
; 
  10 use Symfony\Component\Form\Extension\Core\Type\SubmitType
; 
  11 use Symfony\Component\Validator\Constraints\NotBlank
; 
  13 class RecoverMailType 
extends AbstractType 
{ 
  17         public function buildForm(FormBuilderInterface 
$builder, array $options) { 
  18                 return $builder->add('password', RepeatedType
::class, array('type' => PasswordType
::class, 'invalid_message' => 'The password and confirmation must match', 'first_options' => array('attr' => array('placeholder' => 'Your password'), 'label' => 'Password'), 'second_options' => array('attr' => array('placeholder' => 'Your password confirmation'), 'label' => 'Confirm password'), 'options' => array('constraints' => array(new NotBlank(array('message' => 'Please provide your password')))))) 
  19                         ->add('submit', SubmitType
::class, array('label' => 'Send', 'attr' => array('class' => 'submit'))); 
  25         public function configureOptions(OptionsResolver 
$resolver) { 
  26                 $resolver->setDefaults(['error_bubbling' => true]); 
  32         public function getName() { 
  33                 return 'rapsys_user_recover_mail';