pass view hooks trough to the node hooks

This commit is contained in:
Robin Appelman 2015-09-28 17:17:44 +02:00
parent 1e5a41f008
commit 00020535f9
1 changed files with 5 additions and 1 deletions

View File

@ -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();