@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | $self = $this; |
| 35 | 35 | |
| 36 | - $container->offsetSet('serializer', function () use ($self) { |
|
| 36 | + $container->offsetSet('serializer', function() use ($self) { |
|
| 37 | 37 | return new Serializer( |
| 38 | 38 | $self->createSymfonySerializer() |
| 39 | 39 | ); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $self = $this; |
| 22 | 22 | |
| 23 | - $pimple->offsetSet('queue_client', function (Container $container) use ($self) { |
|
| 23 | + $pimple->offsetSet('queue_client', function(Container $container) use ($self) { |
|
| 24 | 24 | return $self->createClient( |
| 25 | 25 | $container->offsetGet('config'), |
| 26 | 26 | $container->offsetGet('message_mapper') |
@@ -17,11 +17,11 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $self = $this; |
| 19 | 19 | |
| 20 | - $pimple->offsetSet('message_factory', function () use ($self) { |
|
| 20 | + $pimple->offsetSet('message_factory', function() use ($self) { |
|
| 21 | 21 | return $self->createMessageFactory(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - $pimple->offsetSet('message_mapper', function (Container $container) use ($self) { |
|
| 24 | + $pimple->offsetSet('message_mapper', function(Container $container) use ($self) { |
|
| 25 | 25 | return $self->createMessageMapper( |
| 26 | 26 | $container->offsetGet('serializer') |
| 27 | 27 | ); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $self = $this; |
| 22 | 22 | |
| 23 | - $pimple->offsetSet('queue_client', function (Container $container) use ($self) { |
|
| 23 | + $pimple->offsetSet('queue_client', function(Container $container) use ($self) { |
|
| 24 | 24 | return $self->createClient( |
| 25 | 25 | $container->offsetGet('config'), |
| 26 | 26 | $container->offsetGet('message_mapper') |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | 'root_dir' => $this->rootDir, |
| 70 | 70 | 'app_dir' => $this->appDir, |
| 71 | 71 | 'environment' => $this->environment, |
| 72 | - 'commands' => function () { |
|
| 72 | + 'commands' => function() { |
|
| 73 | 73 | return []; |
| 74 | 74 | } |
| 75 | 75 | ]); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function createValidatorFactory(Container $container): ServiceProviderInterface |
| 26 | 26 | { |
| 27 | - $container->offsetSet('json_schema_validator_factory', function () { |
|
| 27 | + $container->offsetSet('json_schema_validator_factory', function() { |
|
| 28 | 28 | return new ValidatorFactory(); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function createProcessFactory(Container $container): ServiceProviderInterface |
| 26 | 26 | { |
| 27 | - $container->offsetSet('process_factory', function () { |
|
| 27 | + $container->offsetSet('process_factory', function() { |
|
| 28 | 28 | return new ProcessFactory(); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected function createEventFactory(Container $container): ServiceProviderInterface |
| 35 | 35 | { |
| 36 | - $container->offsetSet('event_factory', function () { |
|
| 36 | + $container->offsetSet('event_factory', function() { |
|
| 37 | 37 | return new EventFactory(); |
| 38 | 38 | }); |
| 39 | 39 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | protected function createEventQueueNameGenerator(Container $container): ServiceProviderInterface |
| 49 | 49 | { |
| 50 | - $container->offsetSet('event_queue_name_generator', function () { |
|
| 50 | + $container->offsetSet('event_queue_name_generator', function() { |
|
| 51 | 51 | return new EventQueueNameGenerator(); |
| 52 | 52 | }); |
| 53 | 53 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | protected function createEventMapper(Container $container): ServiceProviderInterface |
| 63 | 63 | { |
| 64 | - $container->offsetSet('event_mapper', function (Container $container) { |
|
| 64 | + $container->offsetSet('event_mapper', function(Container $container) { |
|
| 65 | 65 | return new EventMapper( |
| 66 | 66 | $container->offsetGet('event_factory'), |
| 67 | 67 | $container->offsetGet('message_factory'), |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | protected function createEventQueueProducer(Container $container): ServiceProviderInterface |
| 81 | 81 | { |
| 82 | - $container->offsetSet('event_queue_producer', function (Container $container) { |
|
| 82 | + $container->offsetSet('event_queue_producer', function(Container $container) { |
|
| 83 | 83 | return new EventQueueProducer( |
| 84 | 84 | $container->offsetGet('event_mapper'), |
| 85 | 85 | $container->offsetGet('event_queue_name_generator'), |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | protected function createEventQueueConsumer(Container $container): ServiceProviderInterface |
| 99 | 99 | { |
| 100 | - $container->offsetSet('event_queue_consumer', function (Container $container) { |
|
| 100 | + $container->offsetSet('event_queue_consumer', function(Container $container) { |
|
| 101 | 101 | return new EventQueueConsumer( |
| 102 | 102 | $container->offsetGet('process_factory'), |
| 103 | 103 | $container->offsetGet('event_mapper'), |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | protected function createEventDispatcher(Container $container): ServiceProviderInterface |
| 120 | 120 | { |
| 121 | - $container->offsetSet('event_dispatcher', function (Container $container) { |
|
| 121 | + $container->offsetSet('event_dispatcher', function(Container $container) { |
|
| 122 | 122 | return new EventDispatcher( |
| 123 | 123 | $container->offsetGet('event_queue_producer') |
| 124 | 124 | ); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | protected function createEventQueueWorker(Container $container): ServiceProviderInterface |
| 136 | 136 | { |
| 137 | - $container->offsetSet('event_queue_worker', function (Container $container) { |
|
| 137 | + $container->offsetSet('event_queue_worker', function(Container $container) { |
|
| 138 | 138 | return new EventQueueWorker( |
| 139 | 139 | $container->offsetGet('event_dispatcher'), |
| 140 | 140 | $container->offsetGet('event_queue_consumer') |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | */ |
| 152 | 152 | protected function createCommands(Container $container): ServiceProviderInterface |
| 153 | 153 | { |
| 154 | - $container->extend('commands', function (array $commands, Container $container) { |
|
| 154 | + $container->extend('commands', function(array $commands, Container $container) { |
|
| 155 | 155 | $commands[] = new EventQueueConsumeCommand( |
| 156 | 156 | $container->offsetGet('event_dispatcher'), |
| 157 | 157 | $container->offsetGet('event_queue_consumer'), |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | protected function createScheduler(Container $container): ServiceProviderInterface |
| 28 | 28 | { |
| 29 | - $container->offsetSet('scheduler', function () { |
|
| 29 | + $container->offsetSet('scheduler', function() { |
|
| 30 | 30 | return new Scheduler(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function createCommands(Container $container): ServiceProviderInterface |
| 42 | 42 | { |
| 43 | - $container->extend('commands', function (array $commands, Container $container) { |
|
| 43 | + $container->extend('commands', function(array $commands, Container $container) { |
|
| 44 | 44 | $commands[] = new RunSchedulerCommand( |
| 45 | 45 | $container->offsetGet('scheduler'), |
| 46 | 46 | $container->offsetGet('lock_factory'), |