From 10deff45054e70c40ad3e8456c5fd0bace8e3938 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 1 Aug 2011 09:57:53 -0500 Subject: [PATCH] Bypass auto-loader when loading core routing classes. --- public/index.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 11de2ee4..214ebdd9 100644 --- a/public/index.php +++ b/public/index.php @@ -135,6 +135,16 @@ System\Session::load(System\Cookie::get('laravel_session')); } +// -------------------------------------------------------------- +// Load all of the core routing classes. +// -------------------------------------------------------------- +require SYS_PATH.'request'.EXT; +require SYS_PATH.'response'.EXT; +require SYS_PATH.'routing/route'.EXT; +require SYS_PATH.'routing/router'.EXT; +require SYS_PATH.'routing/loader'.EXT; +require SYS_PATH.'routing/filter'.EXT; + // -------------------------------------------------------------- // Register the route filters. // -------------------------------------------------------------- @@ -150,7 +160,7 @@ // ---------------------------------------------------------- if (is_null($response)) { - $route = System\Routing\Router::make(Request::method(), Request::uri(), new System\Routing\Loader)->route(); + $route = System\Routing\Router::make(System\Request::method(), System\Request::uri(), new System\Routing\Loader)->route(); $response = (is_null($route)) ? System\Response::error('404') : $route->call(); }