diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-07-31 20:18:35 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:39 +0200 |
commit | 3921385ed3994c26674ec31606a41899fa8648ee (patch) | |
tree | b5ace47668519e029a342f26e936056d790836c5 /apps/dav/lib/Command | |
parent | ebf23778f5a71b421021165627738e6e7ed5216f (diff) | |
download | nextcloud-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.php | 4 |
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, []); } } |