aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2014-04-28 14:00:27 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-13 22:41:13 +0200
commitbe0d4e20d4be8bc3217e5d025058e065b8f2071a (patch)
tree557a9732223835282b86ba8986120d978bca5260 /phpBB/config/default/container
parent58d1d37c167c978257c9a4680d56835c63202738 (diff)
downloadforums-be0d4e20d4be8bc3217e5d025058e065b8f2071a.tar
forums-be0d4e20d4be8bc3217e5d025058e065b8f2071a.tar.gz
forums-be0d4e20d4be8bc3217e5d025058e065b8f2071a.tar.bz2
forums-be0d4e20d4be8bc3217e5d025058e065b8f2071a.tar.xz
forums-be0d4e20d4be8bc3217e5d025058e065b8f2071a.zip
[ticket/11444] Moving the in-board notifications to a method class
Currently the in-board method for the notifications is hardcoded and cannot be disabled. This method should be in his own class extending `phpbb\notification\method\method_interface`. It also add the possibility, for each method, to be enabled by default (ie: no entry in the DB => notification enabled). https://tracker.phpbb.com/browse/PHPBB3-11444 https://tracker.phpbb.com/browse/PHPBB3-11967 PHPBB3-11444
Diffstat (limited to 'phpBB/config/default/container')
-rw-r--r--phpBB/config/default/container/services_notification.yml38
1 files changed, 18 insertions, 20 deletions
diff --git a/phpBB/config/default/container/services_notification.yml b/phpBB/config/default/container/services_notification.yml
index c3bbcddfa6..7c335eaba0 100644
--- a/phpBB/config/default/container/services_notification.yml
+++ b/phpBB/config/default/container/services_notification.yml
@@ -14,7 +14,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
# ----- Notification's types -----
@@ -39,7 +38,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -57,7 +55,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -75,7 +72,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -93,7 +89,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -111,7 +106,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -129,7 +123,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -147,7 +140,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -165,7 +157,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -183,7 +174,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -201,7 +191,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -219,7 +208,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
calls:
- [set_utils, [@text_formatter.utils]]
@@ -239,7 +227,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -257,7 +244,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -275,7 +261,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -293,7 +278,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -311,7 +295,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -329,7 +312,6 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
@@ -347,11 +329,10 @@ services:
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- - %tables.notifications%
- %tables.user_notifications%
tags:
- { name: notification.type }
-
+
# ----- Notification's methods -----
# Scope MUST be prototype for all the plugins to work.
notification.method_collection:
@@ -361,6 +342,23 @@ services:
tags:
- { name: service_collection, tag: notification.method }
+ notification.method.board:
+ class: phpbb\notification\method\board
+ scope: prototype # scope MUST be prototype for this to work!
+ arguments:
+ - @user_loader
+ - @dbal.conn
+ - @cache.driver
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notification_types%
+ - %tables.notifications%
+ tags:
+ - { name: notification.method }
+
notification.method.email:
class: phpbb\notification\method\email
scope: prototype