Guest User

Untitled

a guest
Nov 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. namespace UserBundle\Form;
  4.  
  5. use Symfony\Component\Form\AbstractType;
  6. use Symfony\Component\Form\FormBuilderInterface;
  7.  
  8. class RegistrationType extends AbstractType
  9.  
  10. {
  11. public function buildForm(FormBuilderInterface $builder, array $options)
  12.  
  13. {
  14. $builder->add('firstname');
  15. $builder->add('lastname');
  16. }
  17.  
  18. public function getParent()
  19.  
  20. {
  21. return 'FOS\UserBundle\Form\Type\RegistrationFormType';
  22. }
  23.  
  24. public function getBlockPrefix()
  25.  
  26. {
  27. return 'app_user_registration';
  28. }
  29.  
  30. public function getName()
  31.  
  32. {
  33. return $this->getBlockPrefix();
  34. }
  35.  
  36. }
Add Comment
Please, Sign In to add comment