fixed router ioc bug.

This commit is contained in:
Taylor Otwell
2011-11-11 23:36:31 -06:00
parent 0e8432e373
commit 32684fa12e
2 changed files with 40 additions and 0 deletions

View File

@@ -177,6 +177,8 @@ $loader = new Routing\Loader(APP_PATH, ROUTE_PATH);
$router = new Routing\Router($loader, CONTROLLER_PATH);
IoC::instance('laravel.routing.router', $router);
Request::$route = $router->route($method, $uri);
if ( ! is_null(Request::$route))