diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-08-07 18:03:51 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-08-07 18:03:51 +0200 |
commit | 77f71fbb08dc067241114b7dada98012f384745f (patch) | |
tree | 8a2aaed4f5319b96436de1e0a916574049ebef74 /lib | |
parent | cf532247e04a25fac776616a3a0ad5a5eebe8019 (diff) | |
parent | fcc03e588aa9e9168fda9f679ac3de8e2276cdfa (diff) | |
download | nextcloud-server-77f71fbb08dc067241114b7dada98012f384745f.tar.gz nextcloud-server-77f71fbb08dc067241114b7dada98012f384745f.zip |
Merge pull request #18120 from owncloud/appframework-isessio
Add \OCP\ISession to AppFramework
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 c7ce6545972..927b6d43302 100644 --- a/lib/private/appframework/dependencyinjection/dicontainer.php +++ b/lib/private/appframework/dependencyinjection/dicontainer.php @@ -212,6 +212,10 @@ class DIContainer extends SimpleContainer implements IAppContainer { return $this->getServer()->getUserSession(); }); + $this->registerService('OCP\\ISession', function($c) { + return $this->getServer()->getSession(); + }); + $this->registerService('ServerContainer', function ($c) { return $this->getServer(); }); |