Commit 35d807ca by Taylor Otwell

git rid of some ioc::container calls.

parent 0a2c61ec
...@@ -99,7 +99,7 @@ if ( ! Config::$items['error']['detail']) ...@@ -99,7 +99,7 @@ if ( ! Config::$items['error']['detail'])
*/ */
if (Config::$items['session']['driver'] !== '') if (Config::$items['session']['driver'] !== '')
{ {
$driver = IoC::container()->core('session.'.Config::$items['session']['driver']); $driver = IoC::core('session.'.Config::$items['session']['driver']);
$id = Cookie::get(Config::$items['session']['cookie']); $id = Cookie::get(Config::$items['session']['cookie']);
...@@ -168,7 +168,7 @@ Routing\Filter::register(require APP_PATH.'filters'.EXT); ...@@ -168,7 +168,7 @@ Routing\Filter::register(require APP_PATH.'filters'.EXT);
list($uri, $method) = array(Request::uri(), Request::method()); list($uri, $method) = array(Request::uri(), Request::method());
Request::$route = IoC::container()->core('routing.router')->route($method, $uri); Request::$route = IoC::core('routing.router')->route($method, $uri);
if ( ! is_null(Request::$route)) if ( ! is_null(Request::$route))
{ {
...@@ -195,7 +195,7 @@ $response->content = $response->render(); ...@@ -195,7 +195,7 @@ $response->content = $response->render();
*/ */
if (Config::$items['session']['driver'] !== '') if (Config::$items['session']['driver'] !== '')
{ {
IoC::container()->core('session')->save($driver); IoC::core('session')->save($driver);
} }
$response->send(); $response->send();
\ No newline at end of file
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