diff --git a/phpBB/config/development/config.yml b/phpBB/config/development/config.yml index e3eb537806..2b07dc5136 100644 --- a/phpBB/config/development/config.yml +++ b/phpBB/config/development/config.yml @@ -11,6 +11,7 @@ core: sql_explain: true memory: true show_errors: true + url_generator: true twig: debug: true diff --git a/phpBB/phpbb/di/extension/container_configuration.php b/phpBB/phpbb/di/extension/container_configuration.php index a1e0a4c297..0e68ad29e7 100644 --- a/phpBB/phpbb/di/extension/container_configuration.php +++ b/phpBB/phpbb/di/extension/container_configuration.php @@ -40,6 +40,7 @@ class container_configuration implements ConfigurationInterface ->booleanNode('sql_explain')->defaultValue(false)->end() ->booleanNode('memory')->defaultValue(false)->end() ->booleanNode('show_errors')->defaultValue(false)->end() + ->booleanNode('url_generator')->defaultValue(false)->end() ->end() ->end() ->arrayNode('twig') diff --git a/phpBB/phpbb/routing/router.php b/phpBB/phpbb/routing/router.php index f19886fb0b..5d6180a04e 100644 --- a/phpBB/phpbb/routing/router.php +++ b/phpBB/phpbb/routing/router.php @@ -255,7 +255,7 @@ class router implements RouterInterface { try { - $cache = new ConfigCache("{$this->cache_dir}url_generator.{$this->php_ext}", defined('DEBUG')); + $cache = new ConfigCache("{$this->cache_dir}url_generator.{$this->php_ext}", $this->container->getParameter('debug.url_generator')); if (!$cache->isFresh()) { $dumper = new PhpGeneratorDumper($this->get_routes());