aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/config')
-rw-r--r--phpBB/config/notifications.yml302
-rw-r--r--phpBB/config/services.yml17
-rw-r--r--phpBB/config/tables.yml2
3 files changed, 321 insertions, 0 deletions
diff --git a/phpBB/config/notifications.yml b/phpBB/config/notifications.yml
new file mode 100644
index 0000000000..7c8e05494c
--- /dev/null
+++ b/phpBB/config/notifications.yml
@@ -0,0 +1,302 @@
+services:
+ notification.type.approve_post:
+ class: phpbb_notification_type_approve_post
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.approve_topic:
+ class: phpbb_notification_type_approve_topic
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.bookmark:
+ class: phpbb_notification_type_bookmark
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.disapprove_post:
+ class: phpbb_notification_type_disapprove_post
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.disapprove_topic:
+ class: phpbb_notification_type_disapprove_topic
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.pm:
+ class: phpbb_notification_type_pm
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.post:
+ class: phpbb_notification_type_post
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.post_in_queue:
+ class: phpbb_notification_type_post_in_queue
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.quote:
+ class: phpbb_notification_type_quote
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.report_pm:
+ class: phpbb_notification_type_report_pm
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.report_pm_closed:
+ class: phpbb_notification_type_report_pm_closed
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.report_post:
+ class: phpbb_notification_type_report_post
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.report_post_closed:
+ class: phpbb_notification_type_report_post
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.topic:
+ class: phpbb_notification_type_topic
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.type.topic_in_queue:
+ class: phpbb_notification_type_topic_in_queue
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+ tags:
+ - { name: notification.type }
+
+ notification.method.email:
+ class: phpbb_notification_method_email
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ tags:
+ - { name: notification.method }
+
+ notification.method.jabber:
+ class: phpbb_notification_method_jabber
+ arguments:
+ - @notification_manager
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ tags:
+ - { name: notification.method } \ No newline at end of file
diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml
index 038c8a862d..efea1d69a5 100644
--- a/phpBB/config/services.yml
+++ b/phpBB/config/services.yml
@@ -1,6 +1,7 @@
imports:
- { resource: tables.yml }
- { resource: cron_tasks.yml }
+ - { resource: notifications.yml }
services:
auth:
@@ -89,6 +90,22 @@ services:
- .%core.php_ext%
- @cache.driver
+ notification_manager:
+ class: phpbb_notification_manager
+ arguments:
+ - @container
+ - @dbal.conn
+ - @cache.driver
+ - @template
+ - @ext.manager
+ - @user
+ - @auth
+ - @config
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.notifications%
+ - %tables.user_notifications%
+
processor.ext:
class: phpbb_di_processor_ext
arguments:
diff --git a/phpBB/config/tables.yml b/phpBB/config/tables.yml
index cfc6dbcfed..8791c5e89b 100644
--- a/phpBB/config/tables.yml
+++ b/phpBB/config/tables.yml
@@ -1,3 +1,5 @@
parameters:
tables.config: %core.table_prefix%config
tables.ext: %core.table_prefix%ext
+ tables.notifications: %core.table_prefix%notifications
+ tables.user_notifications: %core.table_prefix%user_notifications