Skip to content

Commit

Permalink
Merge pull request #40207 from summersab/refactor/apps/dav/OC-Server-…
Browse files Browse the repository at this point in the history
…getAvatarManager

Refactor `OC\Server::getAvatarManager` in dav app
  • Loading branch information
skjnldsv authored May 30, 2024
2 parents 31b0a44 + 7a887b4 commit db4aaf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dav/lib/Avatars/RootCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
namespace OCA\DAV\Avatars;

use OCP\IAvatarManager;
use Sabre\DAVACL\AbstractPrincipalCollection;

class RootCollection extends AbstractPrincipalCollection {
Expand All @@ -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);
}

Expand Down

0 comments on commit db4aaf4

Please sign in to comment.