From c30d14fba18ed65b88a9d1076ab6c065034acee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 18 Apr 2024 11:01:35 +0200 Subject: [PATCH] Deprecate Twig Bundle `base_template_class` option --- .../Bundle/TwigBundle/DependencyInjection/Configuration.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php index 9d08c976a8982..ca23a0dfe3661 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php @@ -129,7 +129,11 @@ private function addTwigOptions(ArrayNodeDefinition $rootNode): void ->children() ->scalarNode('autoescape_service')->defaultNull()->end() ->scalarNode('autoescape_service_method')->defaultNull()->end() - ->scalarNode('base_template_class')->example('Twig\Template')->cannotBeEmpty()->end() + ->scalarNode('base_template_class') + ->setDeprecated('symfony/twig-bundle', '7.1') + ->example('Twig\Template') + ->cannotBeEmpty() + ->end() ->scalarNode('cache')->defaultValue('%kernel.cache_dir%/twig')->end() ->scalarNode('charset')->defaultValue('%kernel.charset%')->end() ->booleanNode('debug')->defaultValue('%kernel.debug%')->end()