fix deprecations: use fqcn for 'choice'

This commit is contained in:
nobohan 2018-04-04 16:19:26 +02:00
parent ae9db21633
commit c9ce6055b2

View File

@ -22,6 +22,7 @@ namespace Chill\MainBundle\Form\Type;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
/** /**
* Extends choice to allow adding select2 library on widget * Extends choice to allow adding select2 library on widget
@ -37,7 +38,7 @@ class Select2ChoiceType extends AbstractType
public function getParent() public function getParent()
{ {
return 'choice'; return ChoiceType::class;
} }
public function configureOptions(OptionsResolver $resolver) public function configureOptions(OptionsResolver $resolver)