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:
parent
d94ee3f864
commit
f8888c62ca
@ -12,6 +12,7 @@ core:
|
||||
memory: true
|
||||
show_errors: true
|
||||
url_generator: true
|
||||
url_matcher: true
|
||||
|
||||
twig:
|
||||
debug: true
|
||||
|
@ -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')
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user