1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/controller] Add test for missing argument in controller class

PHPBB3-10864
This commit is contained in:
David King
2012-11-16 10:30:50 -05:00
parent 230897723c
commit 0c75d3d7da
4 changed files with 19 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
foo_bar_controller:
pattern: /foo/bar
defaults: { _controller: foo_bar.controller:handle }
foo_baz_controller:
pattern: /foo/baz
defaults: { _controller: foo_bar.controller:baz }

View File

@@ -7,4 +7,9 @@ class phpbb_ext_foo_bar_controller
{
return new Response('foo/bar controller handle() method', 200);
}
public function baz($test)
{
return new Response('Value of "test" URL argument is: ' . $test);
}
}

View File

@@ -1,6 +1,6 @@
<?php
class phpbb_ext_foobar_ext extends phpbb_extension_base
class phpbb_ext_foo_bar_ext extends phpbb_extension_base
{
}