Commit 270e0d49 authored by Taylor Otwell's avatar Taylor Otwell

fixed a few bugs.

parent b6ab0b08
...@@ -24,9 +24,10 @@ class IoC { ...@@ -24,9 +24,10 @@ class IoC {
*/ */
public static function bootstrap($registry = array()) public static function bootstrap($registry = array())
{ {
Config::load('container'); if (Config::load('container'))
{
static::$registry = Config::$items['container']; static::$registry = Config::$items['container'];
}
} }
/** /**
......
...@@ -171,7 +171,9 @@ class Payload { ...@@ -171,7 +171,9 @@ class Payload {
*/ */
public function reflash() public function reflash()
{ {
$this->session['data'][':new:'] += $this->session['data'][':old:']; $old = $this->session['data'][':old:'];
$this->session['data'][':new:'] = array_merge($this->session['data'][':new:'], $old);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment