Browse Source

Inject router into before method.

Taylor Otwell 10 years ago
parent
commit
8f3d0ed8eb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Providers/RouteServiceProvider.php

+ 2 - 1
app/Providers/RouteServiceProvider.php

@@ -11,10 +11,11 @@ class RouteServiceProvider extends ServiceProvider {
 	 *
 	 * Register any model bindings or pattern based filters.
 	 *
+	 * @param  Router  $router
 	 * @param  UrlGenerator  $url
 	 * @return void
 	 */
-	public function before(UrlGenerator $url)
+	public function before(Router $router, UrlGenerator $url)
 	{
 		$url->setRootControllerNamespace(
 			trim(config('namespaces.controllers'), '\\')