Skip to content

Commit

Permalink
Bug fix - using this inside closure
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswelton committed Oct 30, 2013
1 parent a543e84 commit 4f4e42e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ public function register()
return new Commands\CdnSyncCommand;
});

$this->app->bind('url', function()
$routes = $this->app['router']->getRoutes();
$request = $this->app['request'];

$this->app->bind('url', function() use ($routes, $request)
{
$routes = $this->app['router']->getRoutes();
return new UrlGenerator($routes, $this->app['request']);
return new UrlGenerator($routes, $request);
});

$this->commands('cdn.sync');
Expand Down

0 comments on commit 4f4e42e

Please sign in to comment.