@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | $container->offsetSet( |
41 | 41 | SerializerConstants::CONTAINER_KEY_SERIALIZER, |
42 | - static function (Container $container) use ($self) { |
|
42 | + static function(Container $container) use ($self) { |
|
43 | 43 | return new Serializer( |
44 | 44 | $self->createSymfonySerializer($container) |
45 | 45 | ); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $self = $this; |
33 | 33 | |
34 | - $container->offsetSet(CacheConstants::CONTAINER_KEY_CACHE, static function (Container $container) use ($self) { |
|
34 | + $container->offsetSet(CacheConstants::CONTAINER_KEY_CACHE, static function(Container $container) use ($self) { |
|
35 | 35 | return new Cache($self->createRedisAdapter($container)); |
36 | 36 | }); |
37 | 37 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | protected function registerMessageFactory(Container $container): QueueServiceProvider |
30 | 30 | { |
31 | - $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_FACTORY, static function () { |
|
31 | + $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_FACTORY, static function() { |
|
32 | 32 | return new MessageFactory(); |
33 | 33 | }); |
34 | 34 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function registerMessageMapper(Container $container): QueueServiceProvider |
44 | 44 | { |
45 | - $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_MAPPER, static function (Container $container) { |
|
45 | + $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_MAPPER, static function(Container $container) { |
|
46 | 46 | return new MessageMapper( |
47 | 47 | $container->offsetGet('serializer') |
48 | 48 | ); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | protected function registerDestinationFactory(Container $container): QueueServiceProvider |
55 | 55 | { |
56 | - $container->offsetSet(QueueConstants::CONTAINER_KEY_DESTINATION_FACTORY, static function () { |
|
56 | + $container->offsetSet(QueueConstants::CONTAINER_KEY_DESTINATION_FACTORY, static function() { |
|
57 | 57 | return new DestinationFactory(); |
58 | 58 | }); |
59 | 59 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | $container->offsetSet( |
40 | 40 | QueueRabbitMqConstants::CONTAINER_KEY_CONNECTION, |
41 | - static function (Container $container) use ($self) { |
|
41 | + static function(Container $container) use ($self) { |
|
42 | 42 | $lazyConnection = $self->createAmqpLazyConnection($container); |
43 | 43 | |
44 | 44 | return new Connection($lazyConnection); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function registerAmqpMessageFactory(Container $container): QueueRabbitMqServiceProvider |
57 | 57 | { |
58 | - $container->offsetSet(QueueRabbitMqConstants::CONTAINER_KEY_AMQP_MESSAGE_FACTORY, static function () { |
|
58 | + $container->offsetSet(QueueRabbitMqConstants::CONTAINER_KEY_AMQP_MESSAGE_FACTORY, static function() { |
|
59 | 59 | return new AmqpMessageFactory(); |
60 | 60 | }); |
61 | 61 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | $container->offsetSet( |
75 | 75 | QueueConstants::CONTAINER_KEY_QUEUE_CLIENT, |
76 | - static function (Container $container) use ($self) { |
|
76 | + static function(Container $container) use ($self) { |
|
77 | 77 | return new QueueClient( |
78 | 78 | $self->createConsumers($container), |
79 | 79 | $self->createProducers($container) |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | $self = $this; |
34 | 34 | |
35 | - $container->offsetSet(LogConstants::CONTAINER_KEY_LOGGER, static function (Container $container) use ($self) { |
|
35 | + $container->offsetSet(LogConstants::CONTAINER_KEY_LOGGER, static function(Container $container) use ($self) { |
|
36 | 36 | $logger = new Logger('jellyfish'); |
37 | 37 | |
38 | 38 | $logger->pushHandler($self->createStreamHandler($container)); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | $self = $this; |
20 | 20 | |
21 | - $pimple->offsetSet(ConfigConstants::CONTAINER_KEY_CONFIG, static function (Container $container) use ($self) { |
|
21 | + $pimple->offsetSet(ConfigConstants::CONTAINER_KEY_CONFIG, static function(Container $container) use ($self) { |
|
22 | 22 | return $self->createConfig($container); |
23 | 23 | }); |
24 | 24 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $container->offsetSet( |
31 | 31 | SerializerConstants::CONTAINER_KEY_PROPERTY_NAME_CONVERTER_STRATEGY_PROVIDER, |
32 | - static function () { |
|
32 | + static function() { |
|
33 | 33 | return new PropertyNameConverterStrategyProvider(); |
34 | 34 | } |
35 | 35 | ); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $container->extend( |
35 | 35 | EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, |
36 | - static function (array $defaultEventErrorHandlers, Container $container) { |
|
36 | + static function(array $defaultEventErrorHandlers, Container $container) { |
|
37 | 37 | $logger = $container->offsetGet(LogConstants::CONTAINER_KEY_LOGGER); |
38 | 38 | |
39 | 39 | $defaultEventErrorHandlers[] = new LogEventErrorHandler($logger); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $container->extend( |
36 | 36 | EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, |
37 | - static function (array $defaultEventErrorHandlers, Container $container) { |
|
37 | + static function(array $defaultEventErrorHandlers, Container $container) { |
|
38 | 38 | $defaultEventErrorHandlers[] = new CacheEventErrorHandler( |
39 | 39 | $container->offsetGet(CacheConstants::CONTAINER_KEY_CACHE), |
40 | 40 | $container->offsetGet(SerializerConstants::CONTAINER_KEY_SERIALIZER) |