<?php
namespace Platform\SecurityBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
/**
* Class LoginType
*
* @package Platform\SecurityBundle\Form\Type
*/
class LoginType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function getName()
{
return '';
}
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('username', TextType::class, array(
'required' => false,
'label' => 'Email',
'attr' => array(
'autocomplete' => 'on',
),
))
->add('password', PasswordType::class, array(
'required' => false,
'attr' => array(
'autocomplete' => 'on',
),
));
}
}