satisfy dependencies for files_external

This commit is contained in:
Arthur Schiwon 2016-08-15 13:38:02 +02:00 committed by Lukas Reschke
parent 57295ee35f
commit 1ebbcdcc96
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 9 additions and 0 deletions

View File

@ -152,6 +152,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getMountProviderCollection();
});
$this->registerService('OCP\\Files\\Config\\IUserMountCache', function($c) {
return $this->getServer()->getUserMountCache();
});
$this->registerService('OCP\\Files\\IRootFolder', function($c) {
return $this->getServer()->getRootFolder();
});

View File

@ -1288,6 +1288,11 @@ class Server extends ServerContainer implements IServerContainer {
return $this->query('MountManager');
}
/** @return \OCP\Files\Config\IUserMountCache */
function getUserMountCache() {
return $this->query('UserMountCache');
}
/**
* Get the MimeTypeDetector
*