Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AdminBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\Extension\Core\Type\PasswordType;
- use Symfony\Component\Form\FormBuilderInterface;
- class LoginForm extends AbstractType
- {
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder
- ->add('_username')
- ->add('_password', PasswordType::class)
- ;
- }
- public function getBlockPrefix()
- {
- return 'admin_bundle_login_form';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement