mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(mvc) set phalcon session as shared
This commit is contained in:
parent
c3541ad17d
commit
40eeea7bf0
@ -72,7 +72,7 @@ $di->set('modelsMetadata', function () {
|
||||
/**
|
||||
* Start the session the first time some component request the session service
|
||||
*/
|
||||
$di->set('session', function () {
|
||||
$di->setShared('session', function () {
|
||||
$session = new SessionAdapter();
|
||||
$session->start();
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ $di->set('url', function () use ($config) {
|
||||
/**
|
||||
* Start the session the first time some component request the session service
|
||||
*/
|
||||
$di->set('session', function () {
|
||||
$di->setShared('session', function () {
|
||||
$session = new SessionAdapter();
|
||||
$session->start();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user