Inject router into before method.

This commit is contained in:
Taylor Otwell 2014-09-24 09:58:12 -05:00
parent 692c9667c7
commit 8f3d0ed8eb
1 changed files with 2 additions and 1 deletions

View File

@ -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'), '\\')