diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-13 15:34:26 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-03 12:07:59 +0100 |
commit | 52dd27892b80ab91d0776c45d05d8447ac24b76e (patch) | |
tree | 56457a3d0eb6119bbe200413557bcb6d76a7329a /apps/dav/lib/Command | |
parent | d3e8463de28197de2d4d61c35906b020ec85b432 (diff) | |
download | nextcloud-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.php | 5 |
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, []); } } |