diff options
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 10 |
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'); + } } |