remove deprecated templating component

This commit is contained in:
2023-07-22 23:05:34 +02:00
parent 4028cc8a8b
commit 7a5db59ac2
10 changed files with 29 additions and 45 deletions

View File

@@ -21,6 +21,7 @@ use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Twig\Environment;
use function array_key_exists;
class CustomFieldText extends AbstractCustomField
@@ -30,11 +31,7 @@ class CustomFieldText extends AbstractCustomField
final public const MULTIPLE_CF_INLINE = 'multipleCFInline';
public function __construct(
private readonly RequestStack $requestStack,
private readonly TwigEngine $templating,
/**
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/
private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper
) {
}