]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Form/RecoverType.php
Remove unused form types
[userbundle] / Form / RecoverType.php
diff --git a/Form/RecoverType.php b/Form/RecoverType.php
deleted file mode 100644 (file)
index 3c14599..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-namespace Rapsys\UserBundle\Form;
-
-use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\FormBuilderInterface;
-use Symfony\Component\OptionsResolver\OptionsResolver;
-use Symfony\Component\Form\Extension\Core\Type\PasswordType;
-use Symfony\Component\Form\Extension\Core\Type\EmailType;
-use Symfony\Component\Form\Extension\Core\Type\SubmitType;
-use Symfony\Component\Validator\Constraints\Email;
-use Symfony\Component\Validator\Constraints\NotBlank;
-
-class RecoverType extends AbstractType {
-       /**
-        * {@inheritdoc}
-        */
-       public function buildForm(FormBuilderInterface $builder, array $options) {
-               return $builder->add('mail', EmailType::class, array('attr' => array('placeholder' => 'Your mail address'), 'constraints' => array(new NotBlank(array('message' => 'Please provide your mail')), new Email(array('message' => 'Your mail doesn\'t seems to be valid')))))
-                       ->add('submit', SubmitType::class, array('label' => 'Send', 'attr' => array('class' => 'submit')));
-       }
-
-       /**
-        * {@inheritdoc}
-        */
-       public function configureOptions(OptionsResolver $resolver) {
-               $resolver->setDefaults(['error_bubbling' => true]);
-       }
-
-       /**
-        * {@inheritdoc}
-        */
-       public function getName() {
-               return 'rapsys_user_recover';
-       }
-}