summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/DependencyInjection/DIContainer.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-11 22:03:01 +0200
committerGitHub <noreply@github.com>2016-10-11 22:03:01 +0200
commit8a700d7b44814d1eccbed3a0990dc51c90df576a (patch)
tree0af4d42477ec5d084fd0008fa626efcfd0823948 /lib/private/AppFramework/DependencyInjection/DIContainer.php
parentbf56b8c620cd2fc18b6e37a54737fb1dd5430ee5 (diff)
parent7eba1d806b6d0034ba399ad3aeedc336e600ab62 (diff)
downloadnextcloud-server-8a700d7b44814d1eccbed3a0990dc51c90df576a.tar.gz
nextcloud-server-8a700d7b44814d1eccbed3a0990dc51c90df576a.zip
Merge pull request #1705 from nextcloud/us_register-commands-in-info.xml
[oc] Register commands in info.xml
Diffstat (limited to 'lib/private/AppFramework/DependencyInjection/DIContainer.php')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index b6f8d8f458d..5fc200a1bce 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -47,7 +47,7 @@ use OC\Core\Middleware\TwoFactorMiddleware;
use OCP\AppFramework\IApi;
use OCP\AppFramework\IAppContainer;
use OCP\Files\IAppData;
-
+use OCP\Files\Mount\IMountManager;
class DIContainer extends SimpleContainer implements IAppContainer {
@@ -309,6 +309,9 @@ class DIContainer extends SimpleContainer implements IAppContainer {
$this->registerService('OCP\\AppFramework\\IAppContainer', function ($c) {
return $c;
});
+ $this->registerService(IMountManager::class, function () {
+ return $this->getServer()->getMountManager();
+ });
// commonly used attributes
$this->registerService('UserId', function ($c) {