Always use the LazyRoot

This commit is contained in:
Roeland Jago Douma 2016-08-26 12:13:34 +02:00
parent ad4cab130e
commit f805aff67c
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ class LazyRoot implements IRootFolder {
* @inheritDoc
*/
public function get($path) {
$this->__call(__FUNCTION__, func_get_args());
return $this->__call(__FUNCTION__, func_get_args());
}
/**

View File

@ -185,7 +185,7 @@ class Server extends ServerContainer implements IServerContainer {
});
$this->registerService('LazyRootFolder', function(Server $c) {
return new LazyRoot(function() use ($c) {
return $c->getRootFolder();
return $c->query('RootFolder');
});
});
$this->registerService('UserManager', function (Server $c) {
@ -838,7 +838,7 @@ class Server extends ServerContainer implements IServerContainer {
* @return \OCP\Files\IRootFolder
*/
public function getRootFolder() {
return $this->query('RootFolder');
return $this->query('LazyRootFolder');
}
/**