summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-01 13:27:12 +0200
committerGitHub <noreply@github.com>2022-09-01 13:27:12 +0200
commit3ae439710e76de6916584ada18a5baea9838e300 (patch)
tree0efcbda5828d545023189b0bf27bc7441e9754bc /lib/private/Server.php
parent7ea84277f886a1f59a80011ccdb80c71a2105c18 (diff)
parent1626a56ddab715e3c6af8081a9d696c74147ff79 (diff)
downloadnextcloud-server-3ae439710e76de6916584ada18a5baea9838e300.tar.gz
nextcloud-server-3ae439710e76de6916584ada18a5baea9838e300.zip
Merge pull request #33764 from nextcloud/cloudid-cache
cache cloud id data in CloudIdManager
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index f18ac7b6534..c1a50cfcaff 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1365,7 +1365,13 @@ class Server extends ServerContainer implements IServerContainer {
});
$this->registerService(ICloudIdManager::class, function (ContainerInterface $c) {
- return new CloudIdManager($c->get(\OCP\Contacts\IManager::class), $c->get(IURLGenerator::class), $c->get(IUserManager::class));
+ return new CloudIdManager(
+ $c->get(\OCP\Contacts\IManager::class),
+ $c->get(IURLGenerator::class),
+ $c->get(IUserManager::class),
+ $c->get(ICacheFactory::class),
+ $c->get(IEventDispatcher::class),
+ );
});
$this->registerAlias(\OCP\GlobalScale\IConfig::class, \OC\GlobalScale\Config::class);