summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Command
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-13 11:04:22 +0200
committerJoas Schilling <coding@schilljs.com>2016-11-03 12:07:58 +0100
commit07f6747305d23dfb16ad3c63b968f974771aa145 (patch)
tree70011903c7b4eec212260d4af5795034907e0ba9 /apps/dav/lib/Command
parent776622f3de8fab30add0c83bf0331c57615467df (diff)
downloadnextcloud-server-07f6747305d23dfb16ad3c63b968f974771aa145.tar.gz
nextcloud-server-07f6747305d23dfb16ad3c63b968f974771aa145.zip
Move the methods into a new class
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, 3 insertions, 2 deletions
diff --git a/apps/dav/lib/Command/CreateCalendar.php b/apps/dav/lib/Command/CreateCalendar.php
index da1f706a8b8..6fea6082443 100644
--- a/apps/dav/lib/Command/CreateCalendar.php
+++ b/apps/dav/lib/Command/CreateCalendar.php
@@ -75,11 +75,12 @@ class CreateCalendar extends Command {
$this->userManager,
$this->groupManager
);
- $config = \OC::$server->getConfig();
$random = \OC::$server->getSecureRandom();
+ $activityManager = \OC::$server->getActivityManager();
+ $userSession = \OC::$server->getUserSession();
$name = $input->getArgument('name');
- $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager, $config, $random);
+ $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager, $this->groupManager, $random, $activityManager, $userSession);
$caldav->createCalendar("principals/users/$user", $name, []);
}
}