summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 0dfbcbb75ec..09128f33bfb 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -63,6 +63,7 @@ use OC\Collaboration\Collaborators\RemotePlugin;
use OC\Collaboration\Collaborators\UserPlugin;
use OC\Command\CronBus;
use OC\Contacts\ContactsMenu\ActionFactory;
+use OC\Contacts\ContactsMenu\ContactsStore;
use OC\Diagnostics\EventLogger;
use OC\Diagnostics\QueryLogger;
use OC\Federation\CloudIdManager;
@@ -1129,6 +1130,15 @@ class Server extends ServerContainer implements IServerContainer {
return new InstanceFactory($memcacheFactory->createLocal('remoteinstance.'), $c->getHTTPClientService());
});
+ $this->registerService(\OCP\Contacts\ContactsMenu\IContactsStore::class, function(Server $c) {
+ return new ContactsStore(
+ $c->getContactsManager(),
+ $c->getConfig(),
+ $c->getUserManager(),
+ $c->getGroupManager()
+ );
+ });
+
$this->connectDispatcher();
}