diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 20:56:25 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-14 12:10:45 +0100 |
commit | a91954907b51debaa9cabc4ccb89bfa6ebcc9c94 (patch) | |
tree | 591ac36c35ab6d6648dffd4647331fb67d66cbda /apps/dav/appinfo/app.php | |
parent | 8f89e3520d74e1805dc46947742a17683ece6ca7 (diff) | |
download | nextcloud-server-a91954907b51debaa9cabc4ccb89bfa6ebcc9c94.tar.gz nextcloud-server-a91954907b51debaa9cabc4ccb89bfa6ebcc9c94.zip |
Start updating system addressbook
Diffstat (limited to 'apps/dav/appinfo/app.php')
-rw-r--r-- | apps/dav/appinfo/app.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/dav/appinfo/app.php b/apps/dav/appinfo/app.php index 5ba7278e88e..5cccab98f17 100644 --- a/apps/dav/appinfo/app.php +++ b/apps/dav/appinfo/app.php @@ -22,18 +22,16 @@ use OCA\DAV\CardDAV\CardDavBackend; use OCA\DAV\CardDAV\SyncService; -\OC::$server->registerService('CardDAVSyncService', function() { +$app = new \OCA\Dav\AppInfo\Application(); +$app->registerHooks(); - $app = new \OCA\Dav\AppInfo\Application(); - /** @var CardDavBackend */ - $backend = $app->getContainer()->query('CardDavBackend'); +\OC::$server->registerService('CardDAVSyncService', function() use ($app) { - return new SyncService($backend); + return $app->getSyncService(); }); $cm = \OC::$server->getContactsManager(); -$cm->register(function() use ($cm) { +$cm->register(function() use ($cm, $app) { $userId = \OC::$server->getUserSession()->getUser()->getUID(); - $app = new \OCA\Dav\AppInfo\Application(); $app->setupContactsProvider($cm, $userId); }); |