aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-04-16 21:30:52 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-04-16 21:30:52 +0200
commitc89384eb86c0d2ff89f9df69dbd14fb61cfcb624 (patch)
tree98bac3192ed32ea6483c33a77aadc1c1f95200cf /phpBB/config/default/container
parentf077b72d0ddabd13350bea276069b68d5df4a89c (diff)
parenta089ff5eb0dcdab83c6c2e64cb0e7cb618aec41f (diff)
downloadforums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.gz
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.bz2
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.xz
forums-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.zip
Merge pull request #3446 from MateBartus/ticket/13654
[ticket/13654] Moving reporting into controller
Diffstat (limited to 'phpBB/config/default/container')
-rw-r--r--phpBB/config/default/container/services.yml1
-rw-r--r--phpBB/config/default/container/services_report.yml53
2 files changed, 54 insertions, 0 deletions
diff --git a/phpBB/config/default/container/services.yml b/phpBB/config/default/container/services.yml
index 93e8ddb122..a7a7703982 100644
--- a/phpBB/config/default/container/services.yml
+++ b/phpBB/config/default/container/services.yml
@@ -13,6 +13,7 @@ imports:
- { resource: services_notification.yml }
- { resource: services_password.yml }
- { resource: services_profilefield.yml }
+ - { resource: services_report.yml }
- { resource: services_text_formatter.yml }
- { resource: services_twig.yml }
- { resource: services_user.yml }
diff --git a/phpBB/config/default/container/services_report.yml b/phpBB/config/default/container/services_report.yml
new file mode 100644
index 0000000000..4bf929429e
--- /dev/null
+++ b/phpBB/config/default/container/services_report.yml
@@ -0,0 +1,53 @@
+services:
+# ----- Report controller -----
+ phpbb.report.controller:
+ class: phpbb\report\controller\report
+ arguments:
+ - @config
+ - @user
+ - @template
+ - @controller.helper
+ - @request
+ - @captcha.factory
+ - @phpbb.report.handler_factory
+ - @phpbb.report.report_reason_list_provider
+ - %core.root_path%
+ - %core.php_ext%
+
+# ----- Report handler factory -----
+ phpbb.report.handler_factory:
+ class: phpbb\report\handler_factory
+ arguments:
+ - @service_container
+
+# ----- Report UI provider -----
+ phpbb.report.report_reason_list_provider:
+ class: phpbb\report\report_reason_list_provider
+ arguments:
+ - @dbal.conn.driver
+ - @template
+ - @user
+
+# ----- Report handlers -----
+# Scope MUST be prototype for all the handlers to work correctly.
+ phpbb.report.handlers.report_handler_pm:
+ class: phpbb\report\report_handler_pm
+ scope: prototype
+ arguments:
+ - @dbal.conn.driver
+ - @dispatcher
+ - @config
+ - @auth
+ - @user
+ - @notification_manager
+
+ phpbb.report.handlers.report_handler_post:
+ class: phpbb\report\report_handler_post
+ scope: prototype
+ arguments:
+ - @dbal.conn.driver
+ - @dispatcher
+ - @config
+ - @auth
+ - @user
+ - @notification_manager