mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Add \OCP\ISession to AppFramework
This commit is contained in:
parent
43888bb9bf
commit
fcc03e588a
@ -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();
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user