diff --git a/phpBB/config/development/config.yml b/phpBB/config/development/config.yml index 2b07dc5136..0c28916e27 100644 --- a/phpBB/config/development/config.yml +++ b/phpBB/config/development/config.yml @@ -12,6 +12,7 @@ core: memory: true show_errors: true url_generator: true + url_matcher: true twig: debug: true diff --git a/phpBB/phpbb/di/extension/container_configuration.php b/phpBB/phpbb/di/extension/container_configuration.php index 0e68ad29e7..f98c9d817c 100644 --- a/phpBB/phpbb/di/extension/container_configuration.php +++ b/phpBB/phpbb/di/extension/container_configuration.php @@ -41,6 +41,7 @@ class container_configuration implements ConfigurationInterface ->booleanNode('memory')->defaultValue(false)->end() ->booleanNode('show_errors')->defaultValue(false)->end() ->booleanNode('url_generator')->defaultValue(false)->end() + ->booleanNode('url_matcher')->defaultValue(false)->end() ->end() ->end() ->arrayNode('twig') diff --git a/phpBB/phpbb/routing/router.php b/phpBB/phpbb/routing/router.php index 09c13a371d..253ee78411 100644 --- a/phpBB/phpbb/routing/router.php +++ b/phpBB/phpbb/routing/router.php @@ -207,7 +207,7 @@ class router implements RouterInterface { try { - $cache = new ConfigCache("{$this->cache_dir}url_matcher.{$this->php_ext}", defined('DEBUG')); + $cache = new ConfigCache("{$this->cache_dir}url_matcher.{$this->php_ext}", $this->container->getParameter('debug.url_matcher')); if (!$cache->isFresh()) { $dumper = new PhpMatcherDumper($this->get_routes());