1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 11:13:59 +02:00

[ticket/13063] Introduces a new \phpbb\routing\router class

PHPBB3-13063
This commit is contained in:
Tristan Darricau
2014-09-14 21:18:20 +02:00
parent 3b1c611566
commit a5bfc76a73
11 changed files with 379 additions and 209 deletions

View File

@@ -73,7 +73,7 @@ services:
- @template
- @user
- @config
- @controller.provider
- @router
- @ext.manager
- @symfony_request
- @request
@@ -89,11 +89,6 @@ services:
- %core.root_path%
- @template
controller.provider:
class: phpbb\controller\provider
calls:
- [find, [%core.root_path%]]
ext.manager:
class: phpbb\extension\manager
arguments:
@@ -157,6 +152,20 @@ services:
- null
- %core.disable_super_globals%
router:
class: phpbb\routing\router
arguments:
- @ext.manager
- %core.root_path%
- %core.php_ext%
router.listener:
class: Symfony\Component\HttpKernel\EventListener\RouterListener
arguments:
- @router
tags:
- { name: kernel.event_subscriber }
# WARNING: The Symfony request does not escape the input and should be used very carefully
# prefer the phpbb request (service @request) as possible
symfony_request: