mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
[ticket/13647] Move FAQ page to a controller
PHPBB3-13647
This commit is contained in:
@@ -8,6 +8,7 @@ imports:
|
||||
- { resource: services_db.yml }
|
||||
- { resource: services_event.yml }
|
||||
- { resource: services_feed.yml }
|
||||
- { resource: services_help.yml }
|
||||
- { resource: services_mimetype_guesser.yml }
|
||||
- { resource: services_notification.yml }
|
||||
- { resource: services_password.yml }
|
||||
|
10
phpBB/config/default/container/services_help.yml
Normal file
10
phpBB/config/default/container/services_help.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
phpbb.help.controller:
|
||||
class: phpbb\help\controller\help
|
||||
arguments:
|
||||
- @controller.helper
|
||||
- @dispatcher
|
||||
- @template
|
||||
- @user
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
3
phpBB/config/default/routing/help.yml
Normal file
3
phpBB/config/default/routing/help.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
phpbb_help_controller:
|
||||
path: /{mode}
|
||||
defaults: { _controller: phpbb.help.controller:handle }
|
@@ -7,3 +7,7 @@
|
||||
# The above will be accessed via app.php?controller=foo and it will
|
||||
# instantiate the "foo_service" service and call the "method" method.
|
||||
#
|
||||
|
||||
phpbb_help_routing:
|
||||
resource: "help.yml"
|
||||
prefix: /help
|
||||
|
Reference in New Issue
Block a user