aboutsummaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorAndrew Summers <18727110+summersab@users.noreply.github.com>2023-08-29 17:12:25 -0500
committerAndrew Summers <18727110+summersab@users.noreply.github.com>2023-08-29 21:32:10 -0500
commit5dccf25e11da5a1838e56c5afd47e1068a7fc965 (patch)
tree4bb691656637f3d02690f954ddfc83478a3b950b /core/Application.php
parent9d1547f59d53b46ba401ddf0e7f4c6e4f067004e (diff)
downloadnextcloud-server-5dccf25e11da5a1838e56c5afd47e1068a7fc965.tar.gz
nextcloud-server-5dccf25e11da5a1838e56c5afd47e1068a7fc965.zip
Refactor `OC\Server::getNotificationManager`
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Application.php b/core/Application.php
index ca9b6ce2d8c..19bc06bd3e9 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -57,6 +57,7 @@ use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Events\Node\NodeDeletedEvent;
use OCP\Files\Events\Node\NodeWrittenEvent;
use OCP\Files\Events\NodeRemovedFromCache;
+use OCP\Notification\IManager as INotificationManager;
use OCP\User\Events\BeforeUserDeletedEvent;
use OCP\User\Events\UserDeletedEvent;
use OCP\Util;
@@ -81,7 +82,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);