From 6b337e0882418113b6c4be8bda83245913b101dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Sat, 1 Sep 2018 01:39:55 +0200 Subject: [PATCH] [ticket/15765] Add debug.url_generator PHPBB3-15765 --- phpBB/config/development/config.yml | 1 + phpBB/phpbb/di/extension/container_configuration.php | 1 + phpBB/phpbb/routing/router.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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());