refactoring the session class.

This commit is contained in:
Taylor Otwell
2011-11-01 23:11:08 -05:00
parent 2e1fed294f
commit 6048d20921
12 changed files with 317 additions and 87 deletions

View File

@@ -70,7 +70,7 @@ class Input {
*/
public static function flash()
{
IoC::container()->core('session')->flash(Input::old_input, static::get());
Session::flash(Input::old_input, static::get());
}
/**
@@ -106,9 +106,7 @@ class Input {
throw new \Exception('A session driver must be specified in order to access old input.');
}
$session = IoC::container()->core('session');
return Arr::get($session->get(Input::old_input, array()), $key, $default);
return Arr::get(Session::get(Input::old_input, array()), $key, $default);
}
/**