@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * Create a new command bus executer. |
| 24 | 24 | * |
| 25 | - * @param League\Tactician\CommandBus $bus |
|
| 25 | + * @param CommandBus $bus |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct(CommandBus $bus) |
| 28 | 28 | { |
@@ -45,12 +45,12 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | protected function registerCommandBus() |
| 47 | 47 | { |
| 48 | - $this->app->singleton('League\Tactician\CommandBus', function ($app) { |
|
| 48 | + $this->app->singleton('League\Tactician\CommandBus', function($app) { |
|
| 49 | 49 | return $app->make('tactician.commandbus'); |
| 50 | 50 | }); |
| 51 | 51 | |
| 52 | - $this->app->singleton('tactician.commandbus', function ($app) { |
|
| 53 | - $middleware = array_map(function ($name) use ($app) { |
|
| 52 | + $this->app->singleton('tactician.commandbus', function($app) { |
|
| 53 | + $middleware = array_map(function($name) use ($app) { |
|
| 54 | 54 | return is_string($name) ? $app->make($name) : $name; |
| 55 | 55 | }, $app->config->get('tactician.middleware')); |
| 56 | 56 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | protected function registerCommandExecuter() |
| 67 | 67 | { |
| 68 | - $this->app->singleton('TillKruss\LaravelTactician\Contracts\Executer', function ($app) { |
|
| 68 | + $this->app->singleton('TillKruss\LaravelTactician\Contracts\Executer', function($app) { |
|
| 69 | 69 | return $app->make(TillKruss\LaravelTactician\Executer::class); |
| 70 | 70 | }); |
| 71 | 71 | } |
@@ -77,11 +77,11 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | protected function registerCommandHandlerMiddleware() |
| 79 | 79 | { |
| 80 | - $this->app->bind('League\Tactician\Handler\CommandHandlerMiddleware', function ($app) { |
|
| 80 | + $this->app->bind('League\Tactician\Handler\CommandHandlerMiddleware', function($app) { |
|
| 81 | 81 | return $app->make('tactician.middleware.commandhandler'); |
| 82 | 82 | }); |
| 83 | 83 | |
| 84 | - $this->app->bind('tactician.middleware.commandhandler', function ($app) { |
|
| 84 | + $this->app->bind('tactician.middleware.commandhandler', function($app) { |
|
| 85 | 85 | return new CommandHandlerMiddleware( |
| 86 | 86 | $app->make(CommandNameExtractor::class), |
| 87 | 87 | $app->make(HandlerLocator::class), |
@@ -97,15 +97,15 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | protected function bindTacticianInterfaces() |
| 99 | 99 | { |
| 100 | - $this->app->bind('League\Tactician\Handler\Locator\HandlerLocator', function ($app) { |
|
| 100 | + $this->app->bind('League\Tactician\Handler\Locator\HandlerLocator', function($app) { |
|
| 101 | 101 | return $app->make($app->config->get('tactician.locator')); |
| 102 | 102 | }); |
| 103 | 103 | |
| 104 | - $this->app->bind('League\Tactician\Handler\MethodNameInflector\MethodNameInflector', function ($app) { |
|
| 104 | + $this->app->bind('League\Tactician\Handler\MethodNameInflector\MethodNameInflector', function($app) { |
|
| 105 | 105 | return $app->make($app->config->get('tactician.inflector')); |
| 106 | 106 | }); |
| 107 | 107 | |
| 108 | - $this->app->bind('League\Tactician\Handler\CommandNameExtractor\CommandNameExtractor', function ($app) { |
|
| 108 | + $this->app->bind('League\Tactician\Handler\CommandNameExtractor\CommandNameExtractor', function($app) { |
|
| 109 | 109 | return $app->make($app->config->get('tactician.extractor')); |
| 110 | 110 | }); |
| 111 | 111 | } |