Pass path to route loader.

This commit is contained in:
Taylor Otwell 2011-08-01 15:36:49 -05:00
parent 2efdef01d2
commit bf30ca7238
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@
* @link http://laravel.com * @link http://laravel.com
*/ */
$t = microtime(true);
// -------------------------------------------------------------- // --------------------------------------------------------------
// The path to the application directory. // The path to the application directory.
// -------------------------------------------------------------- // --------------------------------------------------------------
@ -160,7 +162,7 @@
// ---------------------------------------------------------- // ----------------------------------------------------------
if (is_null($response)) if (is_null($response))
{ {
$route = System\Routing\Router::make(System\Request::method(), System\Request::uri(), new System\Routing\Loader)->route(); $route = System\Routing\Router::make(System\Request::method(), System\Request::uri(), new System\Routing\Loader(APP_PATH))->route();
$response = (is_null($route)) ? System\Response::error('404') : $route->call(); $response = (is_null($route)) ? System\Response::error('404') : $route->call();
} }