summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-28 17:17:44 +0200
committerRobin Appelman <icewind@owncloud.com>2015-09-28 17:18:46 +0200
commit00020535f9adecb0b6e8ce0cfc1feb88af0d59a2 (patch)
treecb0a11299c34c85325de0dd3833a9e9e18268d24 /lib
parent1e5a41f008b20326453f08c15ab581ec8a7b0e3d (diff)
downloadnextcloud-server-00020535f9adecb0b6e8ce0cfc1feb88af0d59a2.tar.gz
nextcloud-server-00020535f9adecb0b6e8ce0cfc1feb88af0d59a2.zip
pass view hooks trough to the node hooks
Diffstat (limited to 'lib')
-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();