12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
-
- namespace Muzich\UserBundle\Form\Type;
-
- use Symfony\Component\Form\FormBuilderInterface;
- use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType;
-
- class RegistrationFormType extends BaseType
- {
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- parent::buildForm($builder, $options);
-
- $builder->add('token', 'text', array(
- //"property_path" => false UPGRADE 2.1
- 'mapped' => false,
- ));
-
- $builder->add('cgu_accepted', 'checkbox', array(
- 'required' => true
- ));
-
- $builder->add('mail_newsletter', 'checkbox', array(
- 'required' => false
- ));
-
- $builder->add('mail_partner', 'checkbox', array(
- 'required' => false
- ));
-
- }
-
- public function getName()
- {
- return 'muzich_user_registration';
- }
- }
|