summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-06 15:43:53 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-08 08:31:21 +0100
commita9eef37456da6728d3c0747c7c75f501f64fe909 (patch)
treecdfeb29fc7187d83481eed16144949a266695d94 /lib/private/Server.php
parent54a30a4b81700570303eaae03810f6ef553d66a2 (diff)
downloadnextcloud-server-a9eef37456da6728d3c0747c7c75f501f64fe909.tar.gz
nextcloud-server-a9eef37456da6728d3c0747c7c75f501f64fe909.zip
Clear avatar cache with frontend repair
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 938c54b8a1c..8ae2cb7652c 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -539,7 +539,7 @@ class Server extends ServerContainer implements IServerContainer {
});
$this->registerAlias(IValidator::class, Validator::class);
- $this->registerService(\OCP\IAvatarManager::class, function (Server $c) {
+ $this->registerService(AvatarManager::class, function(Server $c) {
return new AvatarManager(
$c->query(\OC\User\Manager::class),
$c->getAppDataDir('avatar'),
@@ -548,7 +548,8 @@ class Server extends ServerContainer implements IServerContainer {
$c->getConfig()
);
});
- $this->registerAlias('AvatarManager', \OCP\IAvatarManager::class);
+ $this->registerAlias(\OCP\IAvatarManager::class, AvatarManager::class);
+ $this->registerAlias('AvatarManager', AvatarManager::class);
$this->registerAlias(\OCP\Support\CrashReport\IRegistry::class, \OC\Support\CrashReport\Registry::class);