diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-11-24 15:54:42 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-12-04 16:47:27 +0100 |
commit | f4701d7721453b8356a5be401bb5063d22f851c6 (patch) | |
tree | b27f76b8c02e658ac5e4b599a0ee4e4839b5de19 /lib/private/server.php | |
parent | f3213571bb2609a7f279fd5254f872083b3ea91a (diff) | |
download | nextcloud-server-f4701d7721453b8356a5be401bb5063d22f851c6.tar.gz nextcloud-server-f4701d7721453b8356a5be401bb5063d22f851c6.zip |
Add public api for mount configurations
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index 7bd7f8ca45d..971ffca943d 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -9,6 +9,7 @@ use OC\Cache\UserCache; use OC\Diagnostics\NullQueryLogger; use OC\Diagnostics\EventLogger; use OC\Diagnostics\QueryLogger; +use OC\Files\Config\StorageManager; use OC\Security\CertificateManager; use OC\DB\ConnectionWrapper; use OC\Files\Node\Root; @@ -250,6 +251,10 @@ class Server extends SimpleContainer implements IServerContainer { $groupManager = $c->getGroupManager(); return new \OC\App\AppManager($userSession, $appConfig, $groupManager); }); + $this->registerService('MountConfigManager', function () { + $loader = \OC\Files\Filesystem::getLoader(); + return new \OC\Files\Config\MountProviderCollection($loader); + }); } /** @@ -647,4 +652,11 @@ class Server extends SimpleContainer implements IServerContainer { function getWebRoot() { return $this->webRoot; } + + /** + * @return \OCP\Files\Config\IMountProviderCollection + */ + function getMountProviderCollection(){ + return $this->query('MountConfigManager'); + } } |