mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[ticket/17135] Refactor messenger code to services
PHPBB3-17135
This commit is contained in:
@@ -41,7 +41,8 @@ class phpbb_console_user_activate_test extends phpbb_console_user_base
|
||||
$this->notifications,
|
||||
$this->user_loader,
|
||||
$this->phpbb_root_path,
|
||||
$this->php_ext
|
||||
$this->php_ext,
|
||||
$this->messenger_method_collection
|
||||
));
|
||||
|
||||
$command = $application->find('user:activate');
|
||||
|
@@ -32,7 +32,8 @@ class phpbb_console_user_add_test extends phpbb_console_user_base
|
||||
$this->language,
|
||||
$this->passwords_manager,
|
||||
$this->phpbb_root_path,
|
||||
$this->php_ext
|
||||
$this->php_ext,
|
||||
$this->messenger_method_collection
|
||||
));
|
||||
|
||||
$command = $application->find('user:add');
|
||||
|
@@ -105,6 +105,11 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
|
||||
|
||||
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
||||
|
||||
$this->messenger_method_collection = new \phpbb\di\service_collection($phpbb_container);
|
||||
$this->messenger_method_collection->add('messenger.method.email');
|
||||
$this->messenger_method_collection->add('messenger.method.jabber');
|
||||
$phpbb_container->set('messenger.method_collection', $this->messenger_method_collection);
|
||||
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user