Skip to content

Commit

Permalink
changing the bindShare resolution to return a closure instead of a st…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
Tony Messias committed Sep 14, 2014
1 parent eeceb86 commit 74c499a
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 74c499a

Please sign in to comment.