Skip to content

Instantly share code, notes, and snippets.

@ajaypatelbardoli
Created October 10, 2014 16:07
Show Gist options
  • Save ajaypatelbardoli/09c047425032391c2445 to your computer and use it in GitHub Desktop.
Save ajaypatelbardoli/09c047425032391c2445 to your computer and use it in GitHub Desktop.
RegistrationFormType
<?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