src/IUTUDC/WebsiteBundle/Form/RegistrationType.php line 9

Open in your IDE?
  1. <?php
  2. namespace IUTUDC\WebsiteBundle\Form;
  3. use EWZ\Bundle\RecaptchaBundle\Form\Type\EWZRecaptchaType;
  4. use EWZ\Bundle\RecaptchaBundle\Validator\Constraints\IsTrue as RecaptchaTrue;
  5. use Symfony\Component\Form\AbstractType;
  6. use Symfony\Component\Form\FormBuilderInterface;
  7. class RegistrationType extends AbstractType
  8. {
  9.     public function buildForm(FormBuilderInterface $builder, array $options)
  10.     {
  11.        /* $builder->add('recaptcha', EWZRecaptchaType::class, array(
  12.             'attr' => array(
  13.                 'options' => array(
  14.                     'theme' => 'light',
  15.                     'type' => 'image',
  16.                     'size' => 'normal'
  17.                 )
  18.             ),
  19.             'mapped'      => false,
  20.             'constraints' => array(
  21.                 new RecaptchaTrue()
  22.             )
  23.         ));
  24.         */
  25.     }
  26.     public function getParent()
  27.     {
  28.         return 'FOS\UserBundle\Form\Type\RegistrationFormType';
  29.     }
  30.     public function getBlockPrefix()
  31.     {
  32.         return 'iutudc_website_user_registration';
  33.     }
  34. }