(mvc) set phalcon session as shared

This commit is contained in:
Ad Schellevis 2015-06-07 18:14:10 +00:00
parent c3541ad17d
commit 40eeea7bf0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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