fix deprecatrions: use fqcn for chill classes

This commit is contained in:
nobohan 2018-04-04 12:19:46 +02:00
parent ac9325a7f2
commit 65e7354437

View File

@ -26,6 +26,7 @@ use Chill\MainBundle\Templating\TranslatableStringHelper;
use Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option;
use Chill\CustomFieldsBundle\Form\DataTransformer\CustomFieldDataTransformer;
use Symfony\Bridge\Twig\TwigEngine;
use Chill\MainBundle\Form\Type\Select2ChoiceType;
/**
*
@ -69,7 +70,7 @@ class CustomFieldLongChoice extends AbstractCustomField
false, true);
//create a local copy of translatable string helper
$translatableStringHelper = $this->translatableStringHelper;
$builder->add($customField->getSlug(), 'select2_choice', array(
$builder->add($customField->getSlug(), Select2ChoiceType::class, array(
'choices' => $entries,
'choice_label' => function(Option $option) use ($translatableStringHelper) {
return $translatableStringHelper->localize($option->getText());