summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/appinfo/app.php')
-rw-r--r--apps/dav/appinfo/app.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/dav/appinfo/app.php b/apps/dav/appinfo/app.php
index bc889176f7f..51689b965da 100644
--- a/apps/dav/appinfo/app.php
+++ b/apps/dav/appinfo/app.php
@@ -19,6 +19,18 @@
*
*/
+use OCA\DAV\CardDAV\CardDavBackend;
+use OCA\DAV\CardDAV\SyncService;
+
+\OC::$server->registerService('CardDAVSyncService', function() {
+
+ $app = new \OCA\Dav\AppInfo\Application();
+ /** @var CardDavBackend */
+ $backend = $app->getContainer()->query('CardDavBackend');
+
+ return new SyncService($backend);
+});
+
$cm = \OC::$server->getContactsManager();
$cm->register(function() use ($cm) {
$userId = \OC::$server->getUserSession()->getUser()->getUID();