aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Command
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-13 15:34:26 +0200
committerJoas Schilling <coding@schilljs.com>2016-11-03 12:07:59 +0100
commit52dd27892b80ab91d0776c45d05d8447ac24b76e (patch)
tree56457a3d0eb6119bbe200413557bcb6d76a7329a /apps/dav/lib/Command
parentd3e8463de28197de2d4d61c35906b020ec85b432 (diff)
downloadnextcloud-server-52dd27892b80ab91d0776c45d05d8447ac24b76e.tar.gz
nextcloud-server-52dd27892b80ab91d0776c45d05d8447ac24b76e.zip
Use the event dispatcher
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/Command')
-rw-r--r--apps/dav/lib/Command/CreateCalendar.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/dav/lib/Command/CreateCalendar.php b/apps/dav/lib/Command/CreateCalendar.php
index 6fea6082443..24990352fab 100644
--- a/apps/dav/lib/Command/CreateCalendar.php
+++ b/apps/dav/lib/Command/CreateCalendar.php
@@ -76,11 +76,10 @@ class CreateCalendar extends Command {
$this->groupManager
);
$random = \OC::$server->getSecureRandom();
- $activityManager = \OC::$server->getActivityManager();
- $userSession = \OC::$server->getUserSession();
+ $dispatcher = \OC::$server->getEventDispatcher();
$name = $input->getArgument('name');
- $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager, $this->groupManager, $random, $activityManager, $userSession);
+ $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager, $random, $dispatcher);
$caldav->createCalendar("principals/users/$user", $name, []);
}
}