Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Symfony\Component\Form\FormBuilder;
- use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType;
- class RegistrationFormType extends BaseType
- {
- public function buildForm(FormBuilder $builder, array $options)
- {
- $builder
- ->add('username', 'text')
- ->add('email', 'repeated', array(
- 'type' => 'email',
- 'first_name' => 'input',
- 'second_name' => 'confirm',
- 'invalid_message' => 'repeated.invalid.email',
- ))
- ->add('password', 'repeated', array(
- 'type' => 'password',
- 'first_name' => 'input',
- 'second_name' => 'confirm',
- 'invalid_message' => 'repeated.invalid.password',
- ));
- }
Add Comment
Please, Sign In to add comment