Merge pull request #18120 from owncloud/appframework-isessio

Add \OCP\ISession to AppFramework
This commit is contained in:
Lukas Reschke 2015-08-07 18:03:51 +02:00
commit 77f71fbb08
1 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getUserSession(); return $this->getServer()->getUserSession();
}); });
$this->registerService('OCP\\ISession', function($c) {
return $this->getServer()->getSession();
});
$this->registerService('ServerContainer', function ($c) { $this->registerService('ServerContainer', function ($c) {
return $this->getServer(); return $this->getServer();
}); });