diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-21 10:49:26 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-21 10:49:26 +0200 |
commit | d0aeb268d687f803e62069c852bcd7a1a86eadee (patch) | |
tree | f1be9caa473f8ba3d81b79cf7bdbf4b1714c0092 /lib | |
parent | cf9b8fc1820bca714907b71812daa22641e2350d (diff) | |
parent | a0743f12c6e027a29b83cf9ffff8d5af3c118b6c (diff) | |
download | nextcloud-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.php | 4 |
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'); |