1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/12090] Split finding routes and returning routes into 2 methods

PHPBB3-12090
This commit is contained in:
Joas Schilling
2014-03-09 18:38:21 +01:00
parent 436b1d3577
commit 2eb24d0ace
4 changed files with 25 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ function phpbb_get_url_matcher(\phpbb\extension\finder $finder, RequestContext $
function phpbb_create_dumped_url_matcher(\phpbb\extension\finder $finder, $root_path, $php_ext)
{
$provider = new \phpbb\controller\provider($finder);
$routes = $provider->find($root_path);
$routes = $provider->find($root_path)->get_routes();
$dumper = new PhpMatcherDumper($routes);
$cached_url_matcher_dump = $dumper->dump(array(
'class' => 'phpbb_url_matcher',
@@ -73,7 +73,7 @@ function phpbb_create_dumped_url_matcher(\phpbb\extension\finder $finder, $root_
function phpbb_create_url_matcher(\phpbb\extension\finder $finder, RequestContext $context, $root_path)
{
$provider = new \phpbb\controller\provider($finder);
$routes = $provider->find($root_path);
$routes = $provider->find($root_path)->get_routes();
return new UrlMatcher($routes, $context);
}