mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
fix deprecations: use the fqcn for choiceType
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Chill\MainBundle\Form;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Chill\MainBundle\Form\UserPasswordType;
|
||||
|
||||
class UserType extends AbstractType
|
||||
@@ -25,7 +26,7 @@ class UserType extends AbstractType
|
||||
|
||||
} else {
|
||||
$builder->add($builder
|
||||
->create('enabled', 'choice', array(
|
||||
->create('enabled', ChoiceType::class, array(
|
||||
'choices' => array(
|
||||
0 => 'Disabled, the user is not allowed to login',
|
||||
1 => 'Enabled, the user is active'
|
||||
|
Reference in New Issue
Block a user