1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 10:44:20 +02:00

[ticket/11948] Allow resource importing for routing

PHPBB3-11948
This commit is contained in:
Joas Schilling
2013-10-21 21:52:48 +02:00
parent bd86dea16c
commit 51561ed538
4 changed files with 12 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ class phpbb_controller_controller_test extends phpbb_test_case
$provider = new \phpbb\controller\provider;
$routes = $provider
->import_paths_from_finder($this->extension_manager->get_finder())
->find('./tests/controller/');
->find(__DIR__);
// This will need to be updated if any new routes are defined
$this->assertEquals(3, sizeof($routes));

View File

@@ -1,3 +1,7 @@
controller1:
pattern: /foo
defaults: { _controller: foo.controller:handle }
include_controller2:
resource: "routing_2.yml"
prefix: /foo