From 1ebbcdcc960499527357f35f1c9c6ec88b3c6e7e Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 15 Aug 2016 13:38:02 +0200 Subject: [PATCH] satisfy dependencies for files_external --- lib/private/AppFramework/DependencyInjection/DIContainer.php | 4 ++++ lib/private/Server.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index a1aadf78f2..6f6815268f 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 ff5b1a11f4..9f305ddfd2 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -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 *