<?php
namespace App\Form;
use App\Entity\ConnexionUser;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class ConnexionUserType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('nom',null,['label' => 'Nom'])
->add('prenom',null,['label' => 'Prénom'])
->add('email',null,['label' => 'Email'])
->add('type',null,['label' => 'Type'])
->add('phone',null,['label' => 'Numéro de téléphone'])
->add('password',null,['label' => 'Mot de passe'])
;
}
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'data_class' => ConnexionUser::class,
]);
}
}