aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Server.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/lib/Server.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/lib/Server.php')
-rw-r--r--apps/dav/lib/Server.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index 2d03f09b625..dfe55959a90 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -140,15 +140,7 @@ class Server {
$this->server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin());
$this->server->addPlugin(new \OCA\DAV\CalDAV\Schedule\Plugin());
if ($sendInvitations) {
- $this->server->addPlugin(new IMipPlugin(
- 'dav', // TODO(leon): Retrieve dynamically, but where to find it? :(
- \OC::$server->getUserSession()->getUser()->getUID(),
- \OC::$server->getConfig(),
- $mailer,
- $logger,
- $timezone,
- $l10nFactory
- ));
+ $this->server->addPlugin(\OC::$server->query(\OCA\DAV\CalDAV\Schedule\IMipPlugin::class));
}
$this->server->addPlugin(new \Sabre\CalDAV\Subscriptions\Plugin());
$this->server->addPlugin(new \Sabre\CalDAV\Notifications\Plugin());