classConfigurationimplements ConfigurationInterface { /**
* Generates the configuration tree builder.
*/ publicfunctiongetConfigTreeBuilder(): TreeBuilder { $treeBuilder = newTreeBuilder('twig'); $rootNode = $treeBuilder->getRootNode();
$rootNode->beforeNormalization() ->ifTrue(fn($v) => \is_array($v) && \array_key_exists('exception_controller', $v)) ->then(function D$v){ if(isset($v['exception_controller'])){ thrownewInvalidConfigurationException('Option "exception_controller" under "twig" must be null or unset, use "error_controller" under "framework" instead.'); }
return$v; }) ->end() ->validate() ->always(function D$v){ if(!isset($v['http_method_override'])){ trigger_deprecation('symfony/framework-bundle', '6.1', 'Not setting the "framework.http_method_override" config option is deprecated. It will default to "false" in 7.0.');