mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 13:33:48 +00:00
fix deprecations: use fqcn
This commit is contained in:
@@ -5,6 +5,8 @@ use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\FormEvent;
|
||||
use Symfony\Component\Form\FormEvents;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
|
||||
|
||||
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
|
||||
|
||||
@@ -26,10 +28,10 @@ class ChoicesListType extends AbstractType
|
||||
$locales = $this->defaultLocales;
|
||||
|
||||
$builder->add('name', TranslatableStringFormType::class)
|
||||
->add('active', 'checkbox', array(
|
||||
->add('active', CheckboxType::class, array(
|
||||
'required' => false
|
||||
))
|
||||
->add('slug', 'hidden', array(
|
||||
->add('slug', HiddenType::class, array(
|
||||
|
||||
))
|
||||
->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) use ($locales){
|
||||
|
Reference in New Issue
Block a user