Commit 8f3d0ed8 authored by Taylor Otwell's avatar Taylor Otwell

Inject router into before method.

parent 692c9667
...@@ -11,10 +11,11 @@ class RouteServiceProvider extends ServiceProvider { ...@@ -11,10 +11,11 @@ class RouteServiceProvider extends ServiceProvider {
* *
* Register any model bindings or pattern based filters. * Register any model bindings or pattern based filters.
* *
* @param Router $router
* @param UrlGenerator $url * @param UrlGenerator $url
* @return void * @return void
*/ */
public function before(UrlGenerator $url) public function before(Router $router, UrlGenerator $url)
{ {
$url->setRootControllerNamespace( $url->setRootControllerNamespace(
trim(config('namespaces.controllers'), '\\') trim(config('namespaces.controllers'), '\\')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment