summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/v1/caldav.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/appinfo/v1/caldav.php')
-rw-r--r--apps/dav/appinfo/v1/caldav.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/dav/appinfo/v1/caldav.php b/apps/dav/appinfo/v1/caldav.php
index cb10b038051..53f167bea36 100644
--- a/apps/dav/appinfo/v1/caldav.php
+++ b/apps/dav/appinfo/v1/caldav.php
@@ -87,15 +87,7 @@ $server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin());
$server->addPlugin(new \OCA\DAV\CalDAV\Schedule\Plugin());
if ($sendInvitations) {
- $server->addPlugin(new \OCA\DAV\CalDAV\Schedule\IMipPlugin(
- 'dav', // TODO(leon): Retrieve dynamically, but where to find it? :(
- \OC::$server->getUserSession()->getUser()->getUID(),
- \OC::$server->getConfig(),
- \OC::$server->getMailer(),
- \OC::$server->getLogger(),
- new \OC\AppFramework\Utility\TimeFactory(),
- \OC::$server->getL10NFactory()
- ));
+ $server->addPlugin(\OC::$server->query(\OCA\DAV\CalDAV\Schedule\IMipPlugin::class));
}
$server->addPlugin(new ExceptionLoggerPlugin('caldav', \OC::$server->getLogger()));