<?php
namespace App\Form;
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;
use Symfony\Component\OptionsResolver\OptionsResolver;
class AuthentificationFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('identifiant',TextType::class, ['attr' =>
['class'=>'form-control' ,'placeholder'=>'menu.identifiant']
, 'required'=>true
, 'label'=>false
])
->add('motdepasse',PasswordType::class, ['attr' =>
['class'=>'form-control' ,'placeholder'=>'menu.password']
, 'required'=>true
, 'label'=>false
]);
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
// Configure your form options here
]);
}
}