@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use Illuminate\Contracts\Foundation\Application; |
| 5 | 5 | use Illuminate\Database\DatabaseManager; |
| 6 | 6 | use SmoothPhp\CommandBus\CommandHandlerMiddleWare; |
| 7 | -use SmoothPhp\CommandBus\SimpleCommandBus; |
|
| 8 | 7 | use SmoothPhp\CommandBus\SimpleCommandTranslator; |
| 9 | 8 | use SmoothPhp\Contracts\CommandBus\CommandBus; |
| 10 | 9 | use SmoothPhp\Contracts\EventBus\EventBus; |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | $this->app->singleton( |
| 119 | 119 | CommandBus::class, |
| 120 | - function () use ($middlewareChain) { |
|
| 120 | + function() use ($middlewareChain) { |
|
| 121 | 121 | return new \SmoothPhp\CommandBus\CommandBus($middlewareChain); |
| 122 | 122 | } |
| 123 | 123 | ); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | if ($app['config']->get('cqrses.laravel_eventstore_enabled')) { |
| 141 | 141 | $app->bind( |
| 142 | 142 | EventStore::class, |
| 143 | - function (Application $application) { |
|
| 143 | + function(Application $application) { |
|
| 144 | 144 | return new LaravelEventStore( |
| 145 | 145 | $application->make(DatabaseManager::class), |
| 146 | 146 | $application->make(Serializer::class), |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | { |
| 160 | 160 | $app->singleton( |
| 161 | 161 | EventBus::class, |
| 162 | - function (Application $application) { |
|
| 162 | + function(Application $application) { |
|
| 163 | 163 | $eventBus = $application->make($application['config']->get('cqrses.event_bus')); |
| 164 | 164 | |
| 165 | 165 | foreach ($application['config']->get('cqrses.event_bus_listeners') as $listener) { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | { |
| 179 | 179 | $app->singleton( |
| 180 | 180 | EventDispatcher::class, |
| 181 | - function (Application $application) { |
|
| 181 | + function(Application $application) { |
|
| 182 | 182 | return $application->make($application['config']->get('cqrses.event_dispatcher'), [false]); |
| 183 | 183 | } |
| 184 | 184 | ); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * PushEventsThroughQueue constructor. |
| 28 | 28 | * @param Queue $queue |
| 29 | 29 | * @param Serializer $serializer |
| 30 | - * @param StrongConsistencyCommandBusMiddleware|CommandBus $notificationsCommandBus |
|
| 30 | + * @param StrongConsistencyCommandBusMiddleware $notificationsCommandBus |
|
| 31 | 31 | */ |
| 32 | 32 | public function __construct( |
| 33 | 33 | Queue $queue, |