aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-05-31 19:09:38 +0200
committerGitHub <noreply@github.com>2024-05-31 19:09:38 +0200
commit95dc7729fb6b936778ed6e8b14dac0ae5e5c9028 (patch)
treec7ac69e87ad831d2ed513d5d021570aadb5f77fe /core
parent7dee0361726788e0a7b1e7de47d0d9fc47b4915f (diff)
parent84789222b18caf8ab448decc12ff9ccc8ca39ef4 (diff)
downloadnextcloud-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.php3
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);