aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
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 /lib/private/User
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 'lib/private/User')
-rw-r--r--lib/private/User/User.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index d1185e17aef..3a9697bcbd4 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -49,6 +49,7 @@ use OCP\IImage;
use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserBackend;
+use OCP\Notification\IManager as INotificationManager;
use OCP\User\Events\BeforePasswordUpdatedEvent;
use OCP\User\Events\BeforeUserDeletedEvent;
use OCP\User\Events\PasswordUpdatedEvent;
@@ -297,9 +298,9 @@ class User implements IUser {
$avatarManager = \OCP\Server::get(AvatarManager::class);
$avatarManager->deleteUserAvatar($this->uid);
- $notification = \OC::$server->getNotificationManager()->createNotification();
+ $notification = \OC::$server->get(INotificationManager::class)->createNotification();
$notification->setUser($this->uid);
- \OC::$server->getNotificationManager()->markProcessed($notification);
+ \OC::$server->get(INotificationManager::class)->markProcessed($notification);
/** @var AccountManager $accountManager */
$accountManager = \OCP\Server::get(AccountManager::class);