mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 15:01:33 +02:00
[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
This commit is contained in:
17
phpBB/config/default/routing/report.yml
Normal file
17
phpBB/config/default/routing/report.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
phpbb_report_pm_controller:
|
||||
path: /pm/{id}/report
|
||||
methods: [GET, POST]
|
||||
defaults:
|
||||
_controller: phpbb.report.controller:handle
|
||||
mode: "pm"
|
||||
requirements:
|
||||
id: \d+
|
||||
|
||||
phpbb_report_post_controller:
|
||||
path: /post/{id}/report
|
||||
methods: [GET, POST]
|
||||
defaults:
|
||||
_controller: phpbb.report.controller:handle
|
||||
mode: "post"
|
||||
requirements:
|
||||
id: \d+
|
Reference in New Issue
Block a user