mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/17010] Add webpush to container definition
PHPBB3-17010
This commit is contained in:
parent
07d3376612
commit
5c51f2ef7f
5 changed files with 16 additions and 0 deletions
|
@ -243,3 +243,15 @@ services:
|
||||||
- '%core.php_ext%'
|
- '%core.php_ext%'
|
||||||
tags:
|
tags:
|
||||||
- { name: notification.method }
|
- { name: notification.method }
|
||||||
|
|
||||||
|
notification.method.webpush:
|
||||||
|
class: phpbb\notification\method\webpush
|
||||||
|
shared: false
|
||||||
|
arguments:
|
||||||
|
- '@user_loader'
|
||||||
|
- '@user'
|
||||||
|
- '@config'
|
||||||
|
- '@dbal.conn'
|
||||||
|
- '%core.root_path%'
|
||||||
|
- '%core.php_ext%'
|
||||||
|
- '%tables.notification_push%'
|
||||||
|
|
|
@ -38,6 +38,7 @@ parameters:
|
||||||
tables.modules: '%core.table_prefix%modules'
|
tables.modules: '%core.table_prefix%modules'
|
||||||
tables.notification_emails: '%core.table_prefix%notification_emails'
|
tables.notification_emails: '%core.table_prefix%notification_emails'
|
||||||
tables.notification_types: '%core.table_prefix%notification_types'
|
tables.notification_types: '%core.table_prefix%notification_types'
|
||||||
|
tables.notification_push: '%core.table_prefix%notification_push'
|
||||||
tables.notifications: '%core.table_prefix%notifications'
|
tables.notifications: '%core.table_prefix%notifications'
|
||||||
tables.poll_options: '%core.table_prefix%poll_options'
|
tables.poll_options: '%core.table_prefix%poll_options'
|
||||||
tables.poll_votes: '%core.table_prefix%poll_votes'
|
tables.poll_votes: '%core.table_prefix%poll_votes'
|
||||||
|
|
|
@ -124,6 +124,7 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case
|
||||||
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
||||||
$phpbb_container->setParameter('tables.notification_types', 'phpbb_notification_types');
|
$phpbb_container->setParameter('tables.notification_types', 'phpbb_notification_types');
|
||||||
$phpbb_container->setParameter('tables.notification_emails', 'phpbb_notification_emails');
|
$phpbb_container->setParameter('tables.notification_emails', 'phpbb_notification_emails');
|
||||||
|
$phpbb_container->setParameter('tables.notification_push', 'phpbb_notification_push');
|
||||||
|
|
||||||
$this->notifications = new phpbb_notification_manager_helper(
|
$this->notifications = new phpbb_notification_manager_helper(
|
||||||
array(),
|
array(),
|
||||||
|
|
|
@ -91,6 +91,7 @@ class notification_method_email_test extends phpbb_tests_notification_base
|
||||||
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
||||||
$phpbb_container->setParameter('tables.notification_types', 'phpbb_notification_types');
|
$phpbb_container->setParameter('tables.notification_types', 'phpbb_notification_types');
|
||||||
$phpbb_container->setParameter('tables.notification_emails', 'phpbb_notification_emails');
|
$phpbb_container->setParameter('tables.notification_emails', 'phpbb_notification_emails');
|
||||||
|
$phpbb_container->setParameter('tables.notification_push', 'phpbb_notification_push');
|
||||||
$phpbb_container->set(
|
$phpbb_container->set(
|
||||||
'text_formatter.s9e.mention_helper',
|
'text_formatter.s9e.mention_helper',
|
||||||
new \phpbb\textformatter\s9e\mention_helper(
|
new \phpbb\textformatter\s9e\mention_helper(
|
||||||
|
|
|
@ -154,6 +154,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
|
||||||
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
||||||
$phpbb_container->setParameter('tables.notification_types', 'phpbb_notification_types');
|
$phpbb_container->setParameter('tables.notification_types', 'phpbb_notification_types');
|
||||||
$phpbb_container->setParameter('tables.notification_emails', 'phpbb_notification_emails');
|
$phpbb_container->setParameter('tables.notification_emails', 'phpbb_notification_emails');
|
||||||
|
$phpbb_container->setParameter('tables.notification_push', 'phpbb_notification_push');
|
||||||
$phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $config, $phpbb_dispatcher, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE));
|
$phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $config, $phpbb_dispatcher, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE));
|
||||||
$phpbb_container->addCompilerPass(new phpbb\di\pass\markpublic_pass());
|
$phpbb_container->addCompilerPass(new phpbb\di\pass\markpublic_pass());
|
||||||
$phpbb_container->compile();
|
$phpbb_container->compile();
|
||||||
|
|
Loading…
Add table
Reference in a new issue