From fcc03e588aa9e9168fda9f679ac3de8e2276cdfa Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Fri, 7 Aug 2015 12:28:57 +0100 Subject: Add \OCP\ISession to AppFramework --- lib/private/appframework/dependencyinjection/dicontainer.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/private/appframework/dependencyinjection') 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(); }); -- cgit v1.2.3