fix deprecations: use fqcn

This commit is contained in:
nobohan
2018-04-05 15:23:29 +02:00
parent 0f1c4d1120
commit 4c4f4b5ca7
2 changed files with 9 additions and 4 deletions

View File

@@ -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){