mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13266] Enable the debug extension in the development environment
PHPBB3-13266
This commit is contained in:
@@ -30,7 +30,13 @@ class container_configuration implements ConfigurationInterface
|
||||
$rootNode = $treeBuilder->root('core');
|
||||
$rootNode
|
||||
->children()
|
||||
->booleanNode('require_dev_dependencies')->defaultValue(false)->end()
|
||||
->booleanNode('require_dev_dependencies')->defaultValue(false)->end()
|
||||
->arrayNode('twig')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->booleanNode('enable_debug_extension')->defaultValue(false)->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
;
|
||||
return $treeBuilder;
|
||||
|
@@ -67,6 +67,12 @@ class core extends Extension
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['twig']['enable_debug_extension'])
|
||||
{
|
||||
$definition = $container->getDefinition('template.twig.extensions.debug');
|
||||
$definition->addTag('twig.extension');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user