3 namespace Mixstore\UserBundle\Form\Type
;
5 use Symfony\Component\Form\FormBuilderInterface
;
6 use FOS\UserBundle\Form\Type\RegistrationFormType
as BaseType
;
8 class RegistrationFormType
extends BaseType
10 public function buildForm(FormBuilderInterface
$builder, array $options)
12 parent
::buildForm($builder, $options);
14 // add your custom field
15 $builder->remove('username'); // we use email as the username
16 $builder->add('name'); // first name
17 $builder->add('surname'); // last name
20 public function getName()
22 return 'mixstore_user_registration';