@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $self = $this; |
| 18 | 18 | |
| 19 | - $pimple->offsetSet('config', function ($container) use ($self) { |
|
| 19 | + $pimple->offsetSet('config', function($container) use ($self) { |
|
| 20 | 20 | return $self->createConfig($container); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | $self = $this; |
| 23 | 23 | |
| 24 | - $pimple->offsetSet('logger', function ($container) use ($self) { |
|
| 24 | + $pimple->offsetSet('logger', function($container) use ($self) { |
|
| 25 | 25 | return $self->createLogger($container['config']); |
| 26 | 26 | }); |
| 27 | 27 | } |
@@ -25,15 +25,15 @@ |
||
| 25 | 25 | { |
| 26 | 26 | $self = $this; |
| 27 | 27 | |
| 28 | - $pimple->offsetSet('request', function ($container) use ($self) { |
|
| 28 | + $pimple->offsetSet('request', function($container) use ($self) { |
|
| 29 | 29 | return $self->createServerRequest(); |
| 30 | 30 | }); |
| 31 | 31 | |
| 32 | - $pimple->offsetSet('router', function ($container) use ($self) { |
|
| 32 | + $pimple->offsetSet('router', function($container) use ($self) { |
|
| 33 | 33 | return $self->createRouter(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $pimple->offsetSet('emitter', function ($container) use ($self) { |
|
| 36 | + $pimple->offsetSet('emitter', function($container) use ($self) { |
|
| 37 | 37 | return $self->createEmitter(); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -15,11 +15,11 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $self = $this; |
| 17 | 17 | |
| 18 | - $pimple->offsetSet('feed_reader_manager', function ($container) use ($self) { |
|
| 18 | + $pimple->offsetSet('feed_reader_manager', function($container) use ($self) { |
|
| 19 | 19 | return $self->createFeedReaderManager(); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - $pimple->extend('commands', function ($commands, $container) use ($self) { |
|
| 22 | + $pimple->extend('commands', function($commands, $container) use ($self) { |
|
| 23 | 23 | $commands[] = $self->createRunFeedReaderCommand($container->offsetGet('feed_reader_manager')); |
| 24 | 24 | |
| 25 | 25 | return $commands; |
@@ -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 | ); |
@@ -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'), |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | protected function createEventDispatcher(Container $container): ServiceProviderInterface |
| 119 | 119 | { |
| 120 | - $container->offsetSet('event_dispatcher', function (Container $container) { |
|
| 120 | + $container->offsetSet('event_dispatcher', function(Container $container) { |
|
| 121 | 121 | return new EventDispatcher( |
| 122 | 122 | $container->offsetGet('event_queue_producer') |
| 123 | 123 | ); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | protected function createEventQueueWorker(Container $container): ServiceProviderInterface |
| 135 | 135 | { |
| 136 | - $container->offsetSet('event_queue_worker', function (Container $container) { |
|
| 136 | + $container->offsetSet('event_queue_worker', function(Container $container) { |
|
| 137 | 137 | return new EventQueueWorker( |
| 138 | 138 | $container->offsetGet('event_dispatcher'), |
| 139 | 139 | $container->offsetGet('event_queue_consumer') |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | protected function createCommands(Container $container): ServiceProviderInterface |
| 152 | 152 | { |
| 153 | - $container->extend('commands', function (array $commands, Container $container) { |
|
| 153 | + $container->extend('commands', function(array $commands, Container $container) { |
|
| 154 | 154 | $commands[] = new EventQueueConsumeCommand( |
| 155 | 155 | $container->offsetGet('event_dispatcher'), |
| 156 | 156 | $container->offsetGet('event_queue_consumer') |
@@ -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') |