Browse Source

git rid of some ioc::container calls.

Taylor Otwell 13 years ago
parent
commit
35d807ca2b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      laravel/laravel.php

+ 3 - 3
laravel/laravel.php

@@ -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);
 
 
 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();
  */
  */
 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();