refactor: New Session class
So that session is shared between classes and does not get overwritten
This commit is contained in:
parent
25f33bba56
commit
1387d836dc
5 changed files with 48 additions and 18 deletions
|
@ -42,11 +42,10 @@ class FrontController extends BaseController
|
|||
* BaseController constructor.
|
||||
*
|
||||
* @param ContainerInterface $container Slim dependency container
|
||||
* @param array $cookies Cookie array
|
||||
*/
|
||||
public function __construct(ContainerInterface $container, array $cookies = [])
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
parent::__construct($container, $cookies);
|
||||
parent::__construct($container);
|
||||
|
||||
$this->localeManager = $this->container->get('locale');
|
||||
$this->view = $this->container->get('view');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue