summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-08-07 18:03:51 +0200
committerLukas Reschke <lukas@owncloud.com>2015-08-07 18:03:51 +0200
commit77f71fbb08dc067241114b7dada98012f384745f (patch)
tree8a2aaed4f5319b96436de1e0a916574049ebef74 /lib
parentcf532247e04a25fac776616a3a0ad5a5eebe8019 (diff)
parentfcc03e588aa9e9168fda9f679ac3de8e2276cdfa (diff)
downloadnextcloud-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.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 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();
});