@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected function registerScheduler(Container $container): SchedulerServiceProvider |
32 | 32 | { |
33 | - $container->offsetSet(SchedulerConstants::CONTAINER_KEY_SCHEDULER, function () { |
|
33 | + $container->offsetSet(SchedulerConstants::CONTAINER_KEY_SCHEDULER, function() { |
|
34 | 34 | return new Scheduler(); |
35 | 35 | }); |
36 | 36 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function registerCommands(Container $container): SchedulerServiceProvider |
46 | 46 | { |
47 | - $container->extend('commands', static function (array $commands, Container $container) { |
|
47 | + $container->extend('commands', static function(array $commands, Container $container) { |
|
48 | 48 | $commands[] = new RunSchedulerCommand( |
49 | 49 | $container->offsetGet(SchedulerConstants::CONTAINER_KEY_SCHEDULER), |
50 | 50 | $container->offsetGet('lock_factory'), |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | { |
67 | 67 | $self = $this; |
68 | 68 | |
69 | - $container->offsetSet(SchedulerConstants::CONTAINER_KEY_JOB_FACTORY, static function (Container $container) use ($self) { |
|
69 | + $container->offsetSet(SchedulerConstants::CONTAINER_KEY_JOB_FACTORY, static function(Container $container) use ($self) { |
|
70 | 70 | $processFactory = $self->getProcessFactory($container); |
71 | 71 | if ($processFactory === null) { |
72 | 72 | return null; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | protected function registerEventFactory(Container $container): EventServiceProvider |
145 | 145 | { |
146 | - $container->offsetSet(EventConstants::CONTAINER_KEY_EVENT_FACTORY, static function (Container $container) { |
|
146 | + $container->offsetSet(EventConstants::CONTAINER_KEY_EVENT_FACTORY, static function(Container $container) { |
|
147 | 147 | return new EventFactory($container->offsetGet(UuidConstants::CONTAINER_KEY_UUID_GENERATOR)); |
148 | 148 | }); |
149 | 149 | |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | $container->offsetSet( |
163 | 163 | EventConstants::CONTAINER_KEY_EVENT_DISPATCHER, |
164 | - static function (Container $container) use ($self) { |
|
164 | + static function(Container $container) use ($self) { |
|
165 | 165 | return new EventDispatcher( |
166 | 166 | new EventListenerProvider(), |
167 | 167 | $self->createEventQueueProducer($container) |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | { |
182 | 182 | $self = $this; |
183 | 183 | |
184 | - $container->extend('commands', static function (array $commands, Container $container) use ($self) { |
|
184 | + $container->extend('commands', static function(array $commands, Container $container) use ($self) { |
|
185 | 185 | $commands[] = new EventQueueConsumeCommand( |
186 | 186 | $container->offsetGet('event_dispatcher')->getEventListenerProvider(), |
187 | 187 | $self->createEventQueueConsumer($container), |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | */ |
207 | 207 | protected function registerDefaultEventErrorHandlers(Container $container): EventServiceProvider |
208 | 208 | { |
209 | - $container->offsetSet(EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function () { |
|
209 | + $container->offsetSet(EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function() { |
|
210 | 210 | return []; |
211 | 211 | }); |
212 | 212 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | protected function registerUuidGenerator(Container $container): UuidRamseyServiceProvider |
28 | 28 | { |
29 | - $container->offsetSet(UuidConstants::CONTAINER_KEY_UUID_GENERATOR, static function () { |
|
29 | + $container->offsetSet(UuidConstants::CONTAINER_KEY_UUID_GENERATOR, static function() { |
|
30 | 30 | return new UuidGenerator(new UuidFactory()); |
31 | 31 | }); |
32 | 32 |