Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Sep 25, 2014
2 parents 0aa39b1 + d67f86b commit ed68389
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Laracasts/Commander/CommanderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ protected function registerCommandTranslator()
*/
protected function registerCommandBus()
{
$this->app->bindShared('Laracasts\Commander\CommandBus', 'Laracasts\Commander\DefaultCommandBus');
$this->app->bindShared('Laracasts\Commander\CommandBus', function($app)
{
return $app->make('Laracasts\Commander\DefaultCommandBus');
});
}

/**
Expand Down

0 comments on commit ed68389

Please sign in to comment.