summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Command
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-07-31 20:18:35 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-26 11:55:39 +0200
commit3921385ed3994c26674ec31606a41899fa8648ee (patch)
treeb5ace47668519e029a342f26e936056d790836c5 /apps/dav/lib/Command
parentebf23778f5a71b421021165627738e6e7ed5216f (diff)
downloadnextcloud-server-3921385ed3994c26674ec31606a41899fa8648ee.tar.gz
nextcloud-server-3921385ed3994c26674ec31606a41899fa8648ee.zip
fix things (indentation, tests, comments, backend custom implementation
Diffstat (limited to 'apps/dav/lib/Command')
-rw-r--r--apps/dav/lib/Command/CreateCalendar.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Command/CreateCalendar.php b/apps/dav/lib/Command/CreateCalendar.php
index 0bc6398250e..54cb06db666 100644
--- a/apps/dav/lib/Command/CreateCalendar.php
+++ b/apps/dav/lib/Command/CreateCalendar.php
@@ -44,6 +44,7 @@ class CreateCalendar extends Command {
/**
* @param IUserManager $userManager
+ * @param IGroupManager $groupManager
* @param IDBConnection $dbConnection
*/
function __construct(IUserManager $userManager, IGroupManager $groupManager, IDBConnection $dbConnection) {
@@ -74,9 +75,10 @@ class CreateCalendar extends Command {
$this->userManager,
$this->groupManager
);
+ $config = \OC::$server->getConfig();
$name = $input->getArgument('name');
- $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager);
+ $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager, $config);
$caldav->createCalendar("principals/users/$user", $name, []);
}
}