summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-10-31 17:06:01 +0100
committerGeorg Ehrke <developer@georgehrke.com>2017-11-09 15:14:50 +0100
commit556b2a2b6facb147295abebb18d1b391afa3f184 (patch)
tree5284d59d23f46b75d35fab326b2b706c2b8d4c8c /lib/private/Server.php
parent5d206eec69760afe33b9febcd3173dec2fab989d (diff)
downloadnextcloud-server-556b2a2b6facb147295abebb18d1b391afa3f184.tar.gz
nextcloud-server-556b2a2b6facb147295abebb18d1b391afa3f184.zip
implement CalendarManager
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
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 af18b1a3a11..867eee99b54 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -153,6 +153,9 @@ class Server extends ServerContainer implements IServerContainer {
return $c;
});
+ $this->registerAlias(\OCP\Calendar\IManager::class, \OC\Calendar\Manager::class);
+ $this->registerAlias('CalendarManager', \OC\Calendar\Manager::class);
+
$this->registerAlias(\OCP\Contacts\IManager::class, \OC\ContactsManager::class);
$this->registerAlias('ContactsManager', \OCP\Contacts\IManager::class);
@@ -1095,6 +1098,13 @@ class Server extends ServerContainer implements IServerContainer {
}
/**
+ * @return \OCP\Calendar\IManager
+ */
+ public function getCalendarManager() {
+ return $this->query('CalendarManager');
+ }
+
+ /**
* @return \OCP\Contacts\IManager
*/
public function getContactsManager() {