diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-05-04 21:58:08 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-05-09 23:51:52 +0200 |
commit | 7f3725c96217fb6ada2ceeedcefa552aa216b9e0 (patch) | |
tree | 34a6e2dd594b7a588b01cb6078cf3619723d6a54 /apps/dav/lib/RootCollection.php | |
parent | b07c5dff72f5096a8333bdd471b950d7ca49112b (diff) | |
download | nextcloud-server-7f3725c96217fb6ada2ceeedcefa552aa216b9e0.tar.gz nextcloud-server-7f3725c96217fb6ada2ceeedcefa552aa216b9e0.zip |
chore: polish SystemTagsInUseCollection
- DI SystemTagManager
- add some comments and doc
- catch NoUserException
- add return type hints
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/RootCollection.php')
-rw-r--r-- | apps/dav/lib/RootCollection.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php index ffc2c262cae..6e009875ddc 100644 --- a/apps/dav/lib/RootCollection.php +++ b/apps/dav/lib/RootCollection.php @@ -133,10 +133,7 @@ class RootCollection extends SimpleCollection { $groupManager, \OC::$server->getEventDispatcher() ); - $systemTagInUseCollection = new SystemTag\SystemTagsInUseCollection( - $userSession, - $rootFolder - ); + $systemTagInUseCollection = \OCP\Server::get(SystemTag\SystemTagsInUseCollection::class); $commentsCollection = new Comments\RootCollection( \OC::$server->getCommentsManager(), $userManager, |