mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 08:34:16 +01:00
* [ADD] Session abstraction by using context classes
This commit is contained in:
@@ -31,8 +31,8 @@ use SP\Config\Config;
|
||||
use SP\Config\ConfigData;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Acl\UnauthorizedPageException;
|
||||
use SP\Core\Context\SessionContext;
|
||||
use SP\Core\Events\EventDispatcher;
|
||||
use SP\Core\Session\Session;
|
||||
use SP\Core\UI\Theme;
|
||||
use SP\Mvc\Controller\ControllerTrait;
|
||||
|
||||
@@ -58,7 +58,7 @@ abstract class SimpleControllerBase
|
||||
*/
|
||||
protected $config;
|
||||
/**
|
||||
* @var Session
|
||||
* @var SessionContext
|
||||
*/
|
||||
protected $session;
|
||||
/**
|
||||
@@ -103,7 +103,7 @@ abstract class SimpleControllerBase
|
||||
|
||||
$this->config = $this->dic->get(Config::class);
|
||||
$this->configData = $this->config->getConfigData();
|
||||
$this->session = $this->dic->get(Session::class);
|
||||
$this->session = $this->dic->get(SessionContext::class);
|
||||
$this->theme = $this->dic->get(Theme::class);
|
||||
$this->eventDispatcher = $this->dic->get(EventDispatcher::class);
|
||||
$this->router = $this->dic->get(Klein::class);
|
||||
|
||||
Reference in New Issue
Block a user