* [ADD] Session abstraction by using context classes

This commit is contained in:
nuxsmin
2018-03-09 12:48:33 +01:00
committed by Rubén D
parent 0845f84f83
commit e640f12f23
36 changed files with 418 additions and 190 deletions

View File

@@ -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);