summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/v1/caldav.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-31 15:05:26 +0100
committerGeorg Ehrke <developer@georgehrke.com>2017-11-03 11:20:03 +0100
commitcf04093fa64bb386279f31f4e50a89e6fc37d41a (patch)
tree20d3b1a841f14f896c686205ae4ab45f82dfaa30 /apps/dav/appinfo/v1/caldav.php
parentc899f352615f498b183a020e5dcd6f9b1190db1f (diff)
downloadnextcloud-server-cf04093fa64bb386279f31f4e50a89e6fc37d41a.tar.gz
nextcloud-server-cf04093fa64bb386279f31f4e50a89e6fc37d41a.zip
Fix phpStorm complaints
Signed-off-by: Joas Schilling <coding@schilljs.com>
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()));