Browse Source

Make route loading a little more explicit.

Taylor Otwell 9 years ago
parent
commit
8780949bec
1 changed files with 6 additions and 2 deletions
  1. 6 2
      app/Providers/RouteServiceProvider.php

+ 6 - 2
app/Providers/RouteServiceProvider.php

@@ -30,11 +30,15 @@ class RouteServiceProvider extends ServiceProvider {
 	/**
 	 * Define the routes for the application.
 	 *
+	 * @param  \Illuminate\Routing\Router  $router
 	 * @return void
 	 */
-	public function map()
+	public function map(Router $router)
 	{
-		$this->loadRoutesFrom(app_path('Http/routes.php'));
+		$router->group(['namespace' => $this->namespace], function()
+		{
+			require app_path('Http/routes.php');
+		});
 	}
 
 }