Skip to content
Snippets Groups Projects
Commit fcc03e58 authored by Robin McCorkell's avatar Robin McCorkell
Browse files

Add \OCP\ISession to AppFramework

parent 43888bb9
Branches
No related tags found
No related merge requests found
......@@ -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();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment