diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-13 11:04:22 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-03 12:07:58 +0100 |
commit | 07f6747305d23dfb16ad3c63b968f974771aa145 (patch) | |
tree | 70011903c7b4eec212260d4af5795034907e0ba9 /apps/dav/lib/RootCollection.php | |
parent | 776622f3de8fab30add0c83bf0331c57615467df (diff) | |
download | nextcloud-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/RootCollection.php')
-rw-r--r-- | apps/dav/lib/RootCollection.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php index 4c76dc30c3f..38b4ec795d2 100644 --- a/apps/dav/lib/RootCollection.php +++ b/apps/dav/lib/RootCollection.php @@ -41,6 +41,9 @@ class RootCollection extends SimpleCollection { $config = \OC::$server->getConfig(); $random = \OC::$server->getSecureRandom(); $userManager = \OC::$server->getUserManager(); + $groupManager = \OC::$server->getGroupManager(); + $activityManager = \OC::$server->getActivityManager(); + $userSession = \OC::$server->getUserSession(); $db = \OC::$server->getDatabaseConnection(); $dispatcher = \OC::$server->getEventDispatcher(); $userPrincipalBackend = new Principal( @@ -62,7 +65,7 @@ class RootCollection extends SimpleCollection { $systemPrincipals->disableListing = $disableListing; $filesCollection = new Files\RootCollection($userPrincipalBackend, 'principals/users'); $filesCollection->disableListing = $disableListing; - $caldavBackend = new CalDavBackend($db, $userPrincipalBackend, $userManager, $config, $random); + $caldavBackend = new CalDavBackend($db, $userPrincipalBackend, $userManager, $groupManager, $random, $activityManager, $userSession); $calendarRoot = new CalendarRoot($userPrincipalBackend, $caldavBackend, 'principals/users'); $calendarRoot->disableListing = $disableListing; $publicCalendarRoot = new PublicCalendarRoot($caldavBackend); |