Created
October 10, 2014 16:07
-
-
Save ajaypatelbardoli/09c047425032391c2445 to your computer and use it in GitHub Desktop.
RegistrationFormType
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace XXXX\Bundle\UserBundle\Form\Type; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType; | |
class RegistrationFormType extends BaseType | |
{ | |
public function __construct($dataClass) | |
{ | |
parent::__construct($dataClass); | |
} | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
parent::buildForm($builder, $options); | |
$builder->add('profile','office_brain_user_profile'); | |
} | |
public function getParent() | |
{ | |
return 'fos_user_registration'; | |
} | |
public function getName() | |
{ | |
return 'xxx_user_registration'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment