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

[feature/controller] Implement a front controller

PHPBB3-10864
This commit is contained in:
David King
2012-10-19 19:54:19 -04:00
parent 65dde648ca
commit 06158693c7
23 changed files with 818 additions and 59 deletions

9
phpBB/config/routing.yml Normal file
View File

@@ -0,0 +1,9 @@
# Structure:
#
# foo_controller:
# pattern: /foo
# defaults: { _controller: foo_sevice:method }
#
# The above will be accessed via app.php/foo and it will instantiate the
# "foo_service" service and call the "method" method.
#

View File

@@ -44,6 +44,27 @@ services:
- @cache.driver
- %tables.config%
controller.helper:
class: phpbb_controller_helper
arguments:
- @service_container
controller.resolver:
class: phpbb_controller_resolver
arguments:
- @user
- @service_container
- @ext.finder
controller.route_collection:
class: phpbb_controller_route_collection
arguments:
- @ext.finder
- @controller.provider
controller.provider:
class: phpbb_controller_provider
cron.task_collection:
class: phpbb_di_service_collection
arguments:
@@ -92,10 +113,46 @@ services:
- %core.root_path%
- .%core.php_ext%
- @cache.driver
<<<<<<< HEAD
=======
ext.finder:
class: phpbb_extension_finder
arguments:
- @ext.manager
- %core.root_path%
- @cache.driver
- .%core.php_ext%
- _ext_finder
http_kernel:
class: Symfony\Component\HttpKernel\HttpKernel
arguments:
- @dispatcher
- @controller.resolver
kernel_event_subscriber:
class: phpbb_event_kernel_subscriber
arguments:
- @template
- @user
tags:
- { name: kernel.event_subscriber }
>>>>>>> 719171f... [feature/controller] Implement a front controller
request:
class: phpbb_request
request.context:
class: Symfony\Component\Routing\RequestContext
router_listener:
class: Symfony\Component\HttpKernel\EventListener\RouterListener
arguments:
- @url_matcher
tags:
- { name: kernel.event_subscriber }
style:
class: phpbb_style
arguments:
@@ -132,5 +189,11 @@ services:
template_context:
class: phpbb_template_context
url_matcher:
class: Symfony\Component\Routing\Matcher\UrlMatcher
arguments:
- @controller.route_collection
- @request.context
user:
class: phpbb_user