diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-11-16 21:10:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-16 21:10:35 +0100 |
commit | f32fbbca2e90559458460be40df6850903b1168e (patch) | |
tree | eff22898eba04034d7e83cc50a12337d44a9dc45 /lib/private/Server.php | |
parent | 44b423be355b9fdf1f8354b3c62a2344c53b141c (diff) | |
parent | 7784672cc00c83f1bfce57fc61eebe40c8f8c8a8 (diff) | |
download | nextcloud-server-f32fbbca2e90559458460be40df6850903b1168e.tar.gz nextcloud-server-f32fbbca2e90559458460be40df6850903b1168e.zip |
Merge pull request #6840 from nextcloud/feature/5282/calendar_api
Calendar API for apps
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 1e3ac3de271..faa0ce2f2ac 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); @@ -1099,6 +1102,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() { |