diff --git a/src/Laracasts/Commander/CommanderServiceProvider.php b/src/Laracasts/Commander/CommanderServiceProvider.php index f61a7c9..562d8fe 100644 --- a/src/Laracasts/Commander/CommanderServiceProvider.php +++ b/src/Laracasts/Commander/CommanderServiceProvider.php @@ -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'); + }); } /**