summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/server.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 26eb99927fc..9055f092800 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -46,6 +46,7 @@ use OC\Diagnostics\EventLogger;
use OC\Diagnostics\NullEventLogger;
use OC\Diagnostics\NullQueryLogger;
use OC\Diagnostics\QueryLogger;
+use OC\Files\Node\HookConnector;
use OC\Files\Node\Root;
use OC\Files\View;
use OC\Http\Client\ClientService;
@@ -144,7 +145,10 @@ class Server extends SimpleContainer implements IServerContainer {
$user = $userManager->get($user);
$manager = \OC\Files\Filesystem::getMountManager();
$view = new View();
- return new Root($manager, $view, $user);
+ $root = new Root($manager, $view, $user);
+ $connector = new HookConnector($root, $view);
+ $connector->viewToNode();
+ return $root;
});
$this->registerService('UserManager', function (Server $c) {
$config = $c->getConfig();