diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-05-31 19:09:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 19:09:38 +0200 |
commit | 95dc7729fb6b936778ed6e8b14dac0ae5e5c9028 (patch) | |
tree | c7ac69e87ad831d2ed513d5d021570aadb5f77fe /core | |
parent | 7dee0361726788e0a7b1e7de47d0d9fc47b4915f (diff) | |
parent | 84789222b18caf8ab448decc12ff9ccc8ca39ef4 (diff) | |
download | nextcloud-server-95dc7729fb6b936778ed6e8b14dac0ae5e5c9028.tar.gz nextcloud-server-95dc7729fb6b936778ed6e8b14dac0ae5e5c9028.zip |
Merge pull request #40147 from summersab/refactor/OC-Server-getNotificationManager
Diffstat (limited to 'core')
-rw-r--r-- | core/Application.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Application.php b/core/Application.php index cfbb8f4018a..808b8a266d9 100644 --- a/core/Application.php +++ b/core/Application.php @@ -25,6 +25,7 @@ use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent; use OCP\DB\Events\AddMissingIndicesEvent; use OCP\DB\Events\AddMissingPrimaryKeyEvent; use OCP\EventDispatcher\IEventDispatcher; +use OCP\Notification\IManager as INotificationManager; use OCP\User\Events\BeforeUserDeletedEvent; use OCP\User\Events\UserDeletedEvent; use OCP\Util; @@ -48,7 +49,7 @@ class Application extends App { /** @var IEventDispatcher $eventDispatcher */ $eventDispatcher = $server->get(IEventDispatcher::class); - $notificationManager = $server->getNotificationManager(); + $notificationManager = $server->get(INotificationManager::class); $notificationManager->registerNotifierService(CoreNotifier::class); $notificationManager->registerNotifierService(AuthenticationNotifier::class); |