From 74c499a671bd52133a32c6e290f488c04852af8f Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Sun, 14 Sep 2014 00:45:28 -0300 Subject: [PATCH] changing the bindShare resolution to return a closure instead of a string --- src/Laracasts/Commander/CommanderServiceProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'); + }); } /**