]> source.dussan.org Git - nextcloud-server.git/commitdiff
satisfy dependencies for files_external
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Mon, 15 Aug 2016 11:38:02 +0000 (13:38 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 16 Aug 2016 19:10:37 +0000 (21:10 +0200)
lib/private/AppFramework/DependencyInjection/DIContainer.php
lib/private/Server.php

index a1aadf78f24638f34bf5440294f31d5d74eb8ed8..6f6815268fc6f9bbea36b3eb766803b9006ff673 100644 (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();
                });
index ff5b1a11f44b3add2e360e04beb1ab924aca69e0..9f305ddfd2060ea8e9a1e0e02d24f2aeeb9f9267 100644 (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
         *