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:
@@ -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));
|
||||
|
@@ -1,3 +1,7 @@
|
||||
controller1:
|
||||
pattern: /foo
|
||||
defaults: { _controller: foo.controller:handle }
|
||||
|
||||
include_controller2:
|
||||
resource: "routing_2.yml"
|
||||
prefix: /foo
|
||||
|
Reference in New Issue
Block a user