Allowing use of third party Routers to handle Routing.
A class alias has always been provided in applications/config/application.php, however it is never called as the Router class is always directly targeting the Laravel namespaced class. Signed-off-by: Ben Corlett <bencorlett@me.com>
This commit is contained in:
parent
4c53b9d94d
commit
9f138aa979
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue