summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-21 10:49:26 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-21 10:49:26 +0200
commitd0aeb268d687f803e62069c852bcd7a1a86eadee (patch)
treef1be9caa473f8ba3d81b79cf7bdbf4b1714c0092 /lib
parentcf9b8fc1820bca714907b71812daa22641e2350d (diff)
parenta0743f12c6e027a29b83cf9ffff8d5af3c118b6c (diff)
downloadnextcloud-server-d0aeb268d687f803e62069c852bcd7a1a86eadee.tar.gz
nextcloud-server-d0aeb268d687f803e62069c852bcd7a1a86eadee.zip
Merge pull request #19883 from owncloud/provide-iappcontainer
Provide IAppContainer as dependency injection
Diffstat (limited to 'lib')
-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');