summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/dependencyinjection
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-08-07 12:28:57 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-08-07 12:29:57 +0100
commitfcc03e588aa9e9168fda9f679ac3de8e2276cdfa (patch)
tree5f41b3881ce8f1af20403fc5f406e7d1d6137222 /lib/private/appframework/dependencyinjection
parent43888bb9bf46928acfe79084377b96133609ef6c (diff)
downloadnextcloud-server-fcc03e588aa9e9168fda9f679ac3de8e2276cdfa.tar.gz
nextcloud-server-fcc03e588aa9e9168fda9f679ac3de8e2276cdfa.zip
Add \OCP\ISession to AppFramework
Diffstat (limited to 'lib/private/appframework/dependencyinjection')
-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();
});