diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-28 17:17:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-09-28 17:18:46 +0200 |
commit | 00020535f9adecb0b6e8ce0cfc1feb88af0d59a2 (patch) | |
tree | cb0a11299c34c85325de0dd3833a9e9e18268d24 /lib | |
parent | 1e5a41f008b20326453f08c15ab581ec8a7b0e3d (diff) | |
download | nextcloud-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.php | 6 |
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(); |