1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-23 19:45:10 +01:00
php-phpbb/phpBB/config/default/container/services_report.yml
MateBartus a089ff5eb0 [ticket/13654] Moving reporting into controller
Moving report.php's content into different services and controllers to
better comply with the MVC model.

Also implementing:
 * Replacement for reasons_display()
 * Adding assign_meta_refresh_var() to \controller\helper
 * Adding separate routes for easy configuration
 * Updating unit tests to expect to correct results
 * Add BC tests

PHPBB3-13654
2015-04-16 11:29:11 +02:00

54 lines
1.5 KiB
YAML

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