diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-13 20:36:02 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-14 21:32:54 +0100 |
commit | 48ea7251d74302993bbd1a86d7c01b45417c1965 (patch) | |
tree | ebd0ebbea8d795d4f80edb4d1fac18016a72c9aa /lib/private/Server.php | |
parent | 4c56acffd1a4e8760828408a200b0cb2cb154f95 (diff) | |
download | nextcloud-server-48ea7251d74302993bbd1a86d7c01b45417c1965.tar.gz nextcloud-server-48ea7251d74302993bbd1a86d7c01b45417c1965.zip |
Use \OC\User\Manager internally in the avatarmanager
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 4a851d67226..380ab633b8c 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -284,11 +284,12 @@ class Server extends ServerContainer implements IServerContainer { }); $this->registerAlias('LazyRootFolder', \OCP\Files\IRootFolder::class); - $this->registerService(\OCP\IUserManager::class, function (Server $c) { + $this->registerService(\OC\User\Manager::class, function (Server $c) { $config = $c->getConfig(); return new \OC\User\Manager($config); }); - $this->registerAlias('UserManager', \OCP\IUserManager::class); + $this->registerAlias('UserManager', \OC\User\Manager::class); + $this->registerAlias(\OCP\IUserManager::class, \OC\User\Manager::class); $this->registerService(\OCP\IGroupManager::class, function (Server $c) { $groupManager = new \OC\Group\Manager($this->getUserManager(), $this->getLogger()); @@ -523,7 +524,7 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService(\OCP\IAvatarManager::class, function (Server $c) { return new AvatarManager( - $c->getUserManager(), + $c->query(\OC\User\Manager::class), $c->getAppDataDir('avatar'), $c->getL10N('lib'), $c->getLogger(), |