fixing any depreciations in fixtures feature

This commit is contained in:
2021-01-14 18:57:02 +01:00
parent 3d02785da2
commit e053bf999e
2 changed files with 34 additions and 19 deletions

View File

@@ -30,9 +30,9 @@ use Symfony\Component\HttpFoundation\RequestStack;
use Chill\CustomFieldsBundle\Form\DataTransformer\CustomFieldDataTransformer;
use Symfony\Bridge\Twig\TwigEngine;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Symfony\Component\Translation\Translator;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
*
@@ -60,9 +60,16 @@ class CustomFieldChoice extends AbstractCustomField
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/
private $translatableStringHelper;
/**
* CustomFieldChoice constructor.
*
* @param TranslatorInterface $translator
* @param TwigEngine $templating
* @param TranslatableStringHelper $translatableStringHelper
*/
public function __construct(
Translator $translator,
TranslatorInterface $translator,
TwigEngine $templating,
TranslatableStringHelper $translatableStringHelper)
{