summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-15 13:38:02 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-15 13:38:02 +0200
commit75a73a5a7301f203a962a17f6b2b8b90078c1884 (patch)
tree03c02cfbf0c0d2b8e503060f3273d508c69f3482 /lib
parent8188bb4509e62e67c8f65d6b449e9084dd7cf5a4 (diff)
downloadnextcloud-server-75a73a5a7301f203a962a17f6b2b8b90078c1884.tar.gz
nextcloud-server-75a73a5a7301f203a962a17f6b2b8b90078c1884.zip
satisfy dependencies for files_external
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php4
-rw-r--r--lib/private/Server.php5
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 22bcc004626..77192847867 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -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();
});
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 05f25a7be80..245bbb338e2 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1289,6 +1289,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
*