Merge pull request #1408 from cartalyst/develop

Allowing use of third party Routers to handle Routing.
This commit is contained in:
Taylor Otwell 2012-10-31 14:31:50 -07:00
commit d693a82615
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
<?php namespace Laravel;
use Router;
/*
|--------------------------------------------------------------------------
| Bootstrap The Framework Core
@ -102,7 +104,7 @@
|
*/
Routing\Router::register('*', '(:all)', function()
Router::register('*', '(:all)', function()
{
return Event::first('404');
});
@ -160,7 +162,7 @@
|
*/
Request::$route = Routing\Router::route(Request::method(), $uri);
Request::$route = Router::route(Request::method(), $uri);
$response = Request::$route->call();