diff options
author | Andrew Summers <18727110+summersab@users.noreply.github.com> | 2023-09-01 16:11:24 -0500 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-05-30 14:14:58 +0200 |
commit | 7a887b451396fbeed907ea93e2c0714610bee4df (patch) | |
tree | f505ea8b08c92f06128e591f0c874357887d6fbc | |
parent | 31b0a44cf65b6625636ea0fa15fb1a1122b525e1 (diff) | |
download | nextcloud-server-7a887b451396fbeed907ea93e2c0714610bee4df.tar.gz nextcloud-server-7a887b451396fbeed907ea93e2c0714610bee4df.zip |
Refactor `OC\Server::getAvatarManager` in dav app
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
-rw-r--r-- | apps/dav/lib/Avatars/RootCollection.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Avatars/RootCollection.php b/apps/dav/lib/Avatars/RootCollection.php index 1f05274944c..d7cdb92c6be 100644 --- a/apps/dav/lib/Avatars/RootCollection.php +++ b/apps/dav/lib/Avatars/RootCollection.php @@ -6,6 +6,7 @@ */ namespace OCA\DAV\Avatars; +use OCP\IAvatarManager; use Sabre\DAVACL\AbstractPrincipalCollection; class RootCollection extends AbstractPrincipalCollection { @@ -21,7 +22,7 @@ class RootCollection extends AbstractPrincipalCollection { * @return AvatarHome */ public function getChildForPrincipal(array $principalInfo) { - $avatarManager = \OC::$server->getAvatarManager(); + $avatarManager = \OC::$server->get(IAvatarManager::class); return new AvatarHome($principalInfo, $avatarManager); } |