Advertisement
Guest User

LoginForm

a guest
Jun 15th, 2017
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AdminBundle\Form;
  4.  
  5. use Symfony\Component\Form\AbstractType;
  6. use Symfony\Component\Form\Extension\Core\Type\PasswordType;
  7. use Symfony\Component\Form\FormBuilderInterface;
  8.  
  9. class LoginForm extends AbstractType
  10. {
  11. public function buildForm(FormBuilderInterface $builder, array $options)
  12. {
  13. $builder
  14. ->add('_username')
  15. ->add('_password', PasswordType::class)
  16. ;
  17. }
  18.  
  19. public function getBlockPrefix()
  20. {
  21. return 'admin_bundle_login_form';
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement