summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Direct/ServerFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Direct/ServerFactory.php')
-rw-r--r--apps/dav/lib/Direct/ServerFactory.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/dav/lib/Direct/ServerFactory.php b/apps/dav/lib/Direct/ServerFactory.php
index 85c1555021d..9869e69710a 100644
--- a/apps/dav/lib/Direct/ServerFactory.php
+++ b/apps/dav/lib/Direct/ServerFactory.php
@@ -24,6 +24,8 @@ declare(strict_types=1);
namespace OCA\DAV\Direct;
+use OCA\DAV\Db\DirectMapper;
+use OCP\Files\IRootFolder;
use OCP\IConfig;
class ServerFactory {
@@ -35,8 +37,10 @@ class ServerFactory {
}
public function createServer(string $baseURI,
- string $requestURI) {
- $home = new DirectHome(\OC::$server->getRootFolder());
+ string $requestURI,
+ IRootFolder $rootFolder,
+ DirectMapper $mapper) {
+ $home = new DirectHome($rootFolder, $mapper);
$server = new Server($home);
$server->httpRequest->setUrl($requestURI);