[feature/controller] Add routing and services files

B3P-114
This commit is contained in:
Marc Alexander
2013-01-09 18:22:44 +01:00
parent 93b3291de9
commit 632c7ab24f
2 changed files with 19 additions and 0 deletions

8
root/config/routing.yml Normal file
View File

@@ -0,0 +1,8 @@
board3_controller:
pattern: /portal
defaults: { _controller: board3.portal.main:handle }
# This is currently not supported yet
board3_pages_controller:
pattern: /portal/{page}
defaults: { _controller: board3.portal.main:handle_page, page: "portal" }

11
root/config/services.yml Normal file
View File

@@ -0,0 +1,11 @@
services:
board3.portal.main:
class: phpbb_ext_board3_portal_controller_main
arguments:
- @auth
- @config
- @template
- @user
- %core.root_path%
- .%core.php_ext%