Always use the LazyRoot
This commit is contained in:
parent
ad4cab130e
commit
f805aff67c
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue