1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-19 07:00:14 +01:00

[ticket/12630] Add debug.url_matcher

PHPBB3-12630
This commit is contained in:
Rubén Calvo 2018-09-01 01:37:08 +02:00 committed by rubencm
parent d94ee3f864
commit f8888c62ca
3 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ core:
memory: true
show_errors: true
url_generator: true
url_matcher: true
twig:
debug: true

View File

@ -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')

View File

@ -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());