summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-10-20 10:32:53 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-10-20 10:33:53 +0200
commita0743f12c6e027a29b83cf9ffff8d5af3c118b6c (patch)
tree61d420d9588bac82ee0e56438b6a7b744b418472
parenta59ad87db85c777465789f5afcf3f4753bc2fff5 (diff)
downloadnextcloud-server-a0743f12c6e027a29b83cf9ffff8d5af3c118b6c.tar.gz
nextcloud-server-a0743f12c6e027a29b83cf9ffff8d5af3c118b6c.zip
Provide IAppContainer as dependency injection
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index 651b268a35e..de8672bc4cd 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -226,6 +226,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer();
});
+ $this->registerService('OCP\\AppFramework\\IAppContainer', function ($c) {
+ return $c;
+ });
+
// commonly used attributes
$this->registerService('UserId', function ($c) {
return $c->query('OCP\\IUserSession')->getSession()->get('user_id');