Skip to content

Commit

Permalink
Initializing default session if none is passed in the request
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 20, 2014
1 parent 7642f28 commit 08e6436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Network/Request.php
Expand Up @@ -206,8 +206,12 @@ public function __construct($config = array()) {
'base' => '',
'webroot' => '',
'input' => null,
'session' => null
);

if (empty($config['session'])) {
$config['session'] = new Session();
}

$this->_setConfig($config);
}

Expand Down

0 comments on commit 08e6436

Please sign in to comment.