Skip to content

Commit 41e8384

Browse files
author
Ben Corlett
committed
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 <ben@bens-macbook-pro.lan>
1 parent 4c53b9d commit 41e8384

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

laravel/laravel.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php namespace Laravel;
22

3+
use Router;
4+
35
/*
46
|--------------------------------------------------------------------------
57
| Bootstrap The Framework Core
@@ -102,7 +104,7 @@
102104
|
103105
*/
104106

105-
Routing\Router::register('*', '(:all)', function()
107+
Router::register('*', '(:all)', function()
106108
{
107109
return Event::first('404');
108110
});
@@ -160,7 +162,7 @@
160162
|
161163
*/
162164

163-
Request::$route = Routing\Router::route(Request::method(), $uri);
165+
Request::$route = Router::route(Request::method(), $uri);
164166

165167
$response = Request::$route->call();
166168

0 commit comments

Comments
 (0)