diff options
author | Joas Schilling <coding@schilljs.com> | 2019-07-16 11:36:32 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-16 11:36:32 +0200 |
commit | 55f5bc79a148f065cffa8c97e1867c5814047ff0 (patch) | |
tree | f7873ae6cce3d3fa96ea620854e36f2470c25e3a /apps | |
parent | 6d71e471e166c30c0b9abe05d36240b9f1556d8e (diff) | |
download | nextcloud-server-55f5bc79a148f065cffa8c97e1867c5814047ff0.tar.gz nextcloud-server-55f5bc79a148f065cffa8c97e1867c5814047ff0.zip |
Keep the old method as a fallback and adjust the tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/comments/lib/AppInfo/Application.php | 2 | ||||
-rw-r--r-- | apps/federatedfilesharing/appinfo/app.php | 2 | ||||
-rw-r--r-- | apps/twofactor_backupcodes/lib/AppInfo/Application.php | 2 | ||||
-rw-r--r-- | apps/updatenotification/lib/AppInfo/Application.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/app.php | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/apps/comments/lib/AppInfo/Application.php b/apps/comments/lib/AppInfo/Application.php index 3d20cbbc169..916345e4a5f 100644 --- a/apps/comments/lib/AppInfo/Application.php +++ b/apps/comments/lib/AppInfo/Application.php @@ -76,7 +76,7 @@ class Application extends App { } protected function registerNotifier() { - $this->getContainer()->getServer()->getNotificationManager()->registerNotifier(Notifier::class); + $this->getContainer()->getServer()->getNotificationManager()->registerNotifierService(Notifier::class); } protected function registerCommentsEventHandler() { diff --git a/apps/federatedfilesharing/appinfo/app.php b/apps/federatedfilesharing/appinfo/app.php index bd46f9824f2..6b273faca80 100644 --- a/apps/federatedfilesharing/appinfo/app.php +++ b/apps/federatedfilesharing/appinfo/app.php @@ -29,7 +29,7 @@ $app = new \OCA\FederatedFileSharing\AppInfo\Application(); $eventDispatcher = \OC::$server->getEventDispatcher(); $manager = \OC::$server->getNotificationManager(); -$manager->registerNotifier(Notifier::class); +$manager->registerNotifierService(Notifier::class); $federatedShareProvider = $app->getFederatedShareProvider(); diff --git a/apps/twofactor_backupcodes/lib/AppInfo/Application.php b/apps/twofactor_backupcodes/lib/AppInfo/Application.php index c4e02aaa261..735ee091bd1 100644 --- a/apps/twofactor_backupcodes/lib/AppInfo/Application.php +++ b/apps/twofactor_backupcodes/lib/AppInfo/Application.php @@ -74,7 +74,7 @@ class Application extends App { $container = $this->getContainer(); /** @var IManager $manager */ $manager = $container->query(IManager::class); - $manager->registerNotifier(Notifier::class); + $manager->registerNotifierService(Notifier::class); } public function deleteUser($params) { diff --git a/apps/updatenotification/lib/AppInfo/Application.php b/apps/updatenotification/lib/AppInfo/Application.php index 91b9020d82e..6a1bf719469 100644 --- a/apps/updatenotification/lib/AppInfo/Application.php +++ b/apps/updatenotification/lib/AppInfo/Application.php @@ -71,6 +71,6 @@ class Application extends App { public function registerNotifier() { $notificationsManager = $this->getContainer()->getServer()->getNotificationManager(); - $notificationsManager->registerNotifier(Notifier::class); + $notificationsManager->registerNotifierService(Notifier::class); } } diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php index 34b850e655d..c6e1208e6ea 100644 --- a/apps/user_ldap/appinfo/app.php +++ b/apps/user_ldap/appinfo/app.php @@ -42,7 +42,7 @@ if(count($configPrefixes) > 0) { $ldapWrapper = new OCA\User_LDAP\LDAP(); $ocConfig = \OC::$server->getConfig(); $notificationManager = \OC::$server->getNotificationManager(); - $notificationManager->registerNotifier(\OCA\User_LDAP\Notification\Notifier::class); + $notificationManager->registerNotifierService(\OCA\User_LDAP\Notification\Notifier::class); $userSession = \OC::$server->getUserSession(); $userPluginManager = \OC::$server->query('LDAPUserPluginManager'); |