aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_url_matcher.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-08 16:32:43 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-08 16:37:22 +0100
commit07c07171f9b70a49b592473b8a8400d3838333a3 (patch)
tree0dbacc6b1f177c47e99b0be122a42ccf51f510f3 /phpBB/includes/functions_url_matcher.php
parent275910d8b0fd8d5edeee07eb05ad82da48cc72a3 (diff)
downloadforums-07c07171f9b70a49b592473b8a8400d3838333a3.tar
forums-07c07171f9b70a49b592473b8a8400d3838333a3.tar.gz
forums-07c07171f9b70a49b592473b8a8400d3838333a3.tar.bz2
forums-07c07171f9b70a49b592473b8a8400d3838333a3.tar.xz
forums-07c07171f9b70a49b592473b8a8400d3838333a3.zip
[ticket/12090] Make provider a service and inject it into the helper
PHPBB3-12090
Diffstat (limited to 'phpBB/includes/functions_url_matcher.php')
-rw-r--r--phpBB/includes/functions_url_matcher.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_url_matcher.php b/phpBB/includes/functions_url_matcher.php
index c5d6815119..4db1bfa01f 100644
--- a/phpBB/includes/functions_url_matcher.php
+++ b/phpBB/includes/functions_url_matcher.php
@@ -53,8 +53,8 @@ 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();
- $routes = $provider->import_paths_from_finder($finder)->find($root_path);
+ $provider = new \phpbb\controller\provider($finder);
+ $routes = $provider->find($root_path);
$dumper = new PhpMatcherDumper($routes);
$cached_url_matcher_dump = $dumper->dump(array(
'class' => 'phpbb_url_matcher',
@@ -72,8 +72,8 @@ 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();
- $routes = $provider->import_paths_from_finder($finder)->find($root_path);
+ $provider = new \phpbb\controller\provider($finder);
+ $routes = $provider->find($root_path);
return new UrlMatcher($routes, $context);
}