Got rid of all IoC::container() calls
This commit is contained in:
@@ -72,7 +72,7 @@ class Input {
|
||||
{
|
||||
if (Config::$items['session']['driver'] !== '')
|
||||
{
|
||||
IoC::container()->core('session')->flash(Input::old_input, static::get());
|
||||
IoC::core('session')->flash(Input::old_input, static::get());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ class Input {
|
||||
throw new \Exception('A session driver must be specified in order to access old input.');
|
||||
}
|
||||
|
||||
$old = IoC::container()->core('session')->get(Input::old_input, array());
|
||||
$old = IoC::core('session')->get(Input::old_input, array());
|
||||
|
||||
return Arr::get($old, $key, $default);
|
||||
}
|
||||
@@ -153,4 +153,4 @@ class Input {
|
||||
return array_key_exists($key, $_FILES) ? File::upload($key, $path, $_FILES) : false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user