summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2018-06-18 14:33:25 +0200
committerGeorg Ehrke <developer@georgehrke.com>2018-06-25 04:58:08 +0200
commit9aca92c441229619cfef5ee4dc68f71d819bc6e9 (patch)
tree0eeef33a5f1c4c4c51e1b7dbc0d88c699ca6fbcf /lib
parentc83629674eca793cd184462fce5d85902964878c (diff)
downloadnextcloud-server-9aca92c441229619cfef5ee4dc68f71d819bc6e9.tar.gz
nextcloud-server-9aca92c441229619cfef5ee4dc68f71d819bc6e9.zip
hook up calendar resource managers/backends with server container
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php20
-rw-r--r--lib/public/IServerContainer.php18
2 files changed, 38 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 31f088ea718..1603c50e26e 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -174,6 +174,12 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerAlias(\OCP\Calendar\IManager::class, \OC\Calendar\Manager::class);
$this->registerAlias('CalendarManager', \OC\Calendar\Manager::class);
+ $this->registerAlias(\OCP\Calendar\Resource\IManager::class, \OC\Calendar\Resource\Manager::class);
+ $this->registerAlias('CalendarResourceBackendManager', \OC\Calendar\Resource\Manager::class);
+
+ $this->registerAlias(\OCP\Calendar\Room\IManager::class, \OC\Calendar\Room\Manager::class);
+ $this->registerAlias('CalendarRoomBackendManager', \OC\Calendar\Room\Manager::class);
+
$this->registerAlias(\OCP\Contacts\IManager::class, \OC\ContactsManager::class);
$this->registerAlias('ContactsManager', \OCP\Contacts\IManager::class);
@@ -1174,6 +1180,20 @@ class Server extends ServerContainer implements IServerContainer {
return $this->query('CalendarManager');
}
+ /**
+ * @return \OCP\Calendar\Resource\IManager
+ */
+ public function getCalendarResourceBackendManager() {
+ return $this->query('CalendarResourceBackendManager');
+ }
+
+ /**
+ * @return \OCP\Calendar\Room\IManager
+ */
+ public function getCalendarRoomBackendManager() {
+ return $this->query('CalendarRoomBackendManager');
+ }
+
private function connectDispatcher() {
$dispatcher = $this->getEventDispatcher();
diff --git a/lib/public/IServerContainer.php b/lib/public/IServerContainer.php
index c38aaf9f2cb..96015d3f8a8 100644
--- a/lib/public/IServerContainer.php
+++ b/lib/public/IServerContainer.php
@@ -68,6 +68,24 @@ interface IServerContainer extends IContainer {
public function getCalendarManager();
/**
+ * The calendar resource backend manager will act as a broker between consumers
+ * for calendar resource information an providers which actual deliver the room information.
+ *
+ * @return \OCP\Calendar\Resource\IBackend
+ * @since 14.0.0
+ */
+ public function getCalendarResourceBackendManager();
+
+ /**
+ * The calendar room backend manager will act as a broker between consumers
+ * for calendar room information an providers which actual deliver the room information.
+ *
+ * @return \OCP\Calendar\Room\IBackend
+ * @since 14.0.0
+ */
+ public function getCalendarRoomBackendManager();
+
+ /**
* The contacts manager will act as a broker between consumers for contacts information and
* providers which actual deliver the contact information.
*