refactoring the routing engine.

This commit is contained in:
Taylor Otwell
2011-09-04 22:40:33 -05:00
parent 3e874867b8
commit d35e2abd77
8 changed files with 243 additions and 217 deletions

View File

@@ -67,13 +67,13 @@ unset($packages);
// --------------------------------------------------------------
// Route the request and get the response from the route.
// --------------------------------------------------------------
$route = $application->router->route();
$route = $application->container->resolve('laravel.routing.router')->route();
if ( ! is_null($route))
{
$route->filters = require APP_PATH.'filters'.EXT;
$response = $route->call($application);
$response = $application->container->resolve('laravel.routing.caller')->call($route);
}
else
{