summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-07-03 07:57:31 +0200
committerVincent Petry <pvince81@owncloud.com>2015-07-03 07:57:31 +0200
commitf70791653cefc40f640e48dcad489237b750d85c (patch)
tree91776514eed764881bee7243505e730978ca3036 /lib/private/server.php
parentb8f5b2c47a66e46940f68ede5bd14252d65e559d (diff)
parent57945dbc4b0144bdebeda5cf15a168556118e9e3 (diff)
downloadnextcloud-server-f70791653cefc40f640e48dcad489237b750d85c.tar.gz
nextcloud-server-f70791653cefc40f640e48dcad489237b750d85c.zip
Merge pull request #17291 from owncloud/mount-manager-public
expose the mount manager in the public api
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index c08940bb756..af137ce36aa 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -441,6 +441,9 @@ class Server extends SimpleContainer implements IServerContainer {
}
return new NoopLockingProvider();
});
+ $this->registerService('MountManager', function () {
+ return new \OC\Files\Mount\Manager();
+ });
}
/**
@@ -941,4 +944,11 @@ class Server extends SimpleContainer implements IServerContainer {
public function getLockingProvider() {
return $this->query('LockingProvider');
}
+
+ /**
+ * @return \OCP\Files\Mount\IMountManager
+ **/
+ function getMountManager() {
+ return $this->query('MountManager');
+ }
}