@@ -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 | ); |