1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/17010] Add controller methods for subscribe/unsubscribe and others

PHPBB3-17010
This commit is contained in:
Marc Alexander
2022-10-28 20:54:37 +02:00
parent 35259056f0
commit d4b6ad5620
5 changed files with 274 additions and 10 deletions

View File

@@ -16,7 +16,16 @@ services:
- '%core.root_path%'
- '%core.php_ext%'
phpbb.ucp.controller.push_worker:
phpbb.ucp.controller.webpush:
class: phpbb\ucp\controller\webpush
arguments:
- '@config'
- '@controller.helper'
- '@dbal.conn'
- '@form_helper'
- '@path_helper'
- '@request'
- '@user'
- '@template.twig.environment'
- '%tables.notification_push%'
- '%tables.push_subscriptions%'

View File

@@ -6,10 +6,22 @@ phpbb_ucp_forgot_password_controller:
path: /forgot_password
defaults: { _controller: phpbb.ucp.controller.reset_password:request }
phpbb_ucp_push_get_notification_controller:
path: /push/notification
defaults: { _controller: phpbb.ucp.controller.webpush:notification }
phpbb_ucp_push_worker_controller:
path: /push/worker
defaults: { _controller: phpbb.ucp.controller.webpush:request }
defaults: { _controller: phpbb.ucp.controller.webpush:worker }
phpbb_ucp_push_subscribe_controller:
path: /push/subscribe
defaults: { _controller: phpbb.ucp.controller.webpush:request }
defaults: { _controller: phpbb.ucp.controller.webpush:subscribe }
phpbb_ucp_push_unsubscribe_controller:
path: /push/unsubscribe
defaults: { _controller: phpbb.ucp.controller.webpush:unsubscribe }
phpbb_ucp_push_js_controller:
path: /push/js
defaults: { _controller: phpbb.ucp.controller.webpush:js }