@@ -40,14 +40,14 @@ |
||
40 | 40 | if ($step instanceof StageConnectorInterface) { |
41 | 41 | $step->invoke( |
42 | 42 | $context, |
43 | - function ($newContext) use ($currentIndex) { |
|
43 | + function($newContext) use ($currentIndex) { |
|
44 | 44 | $this->invokeNext($newContext, $currentIndex + 1); |
45 | 45 | } |
46 | 46 | ); |
47 | 47 | } else { |
48 | 48 | $step->invoke( |
49 | 49 | $context, |
50 | - function () use ($context, $currentIndex) { |
|
50 | + function() use ($context, $currentIndex) { |
|
51 | 51 | $this->invokeNext($context, $currentIndex + 1); |
52 | 52 | } |
53 | 53 | ); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $pipelineModifications->registerStep( |
40 | 40 | 'LoadHandlersConnector', |
41 | 41 | LoadHandlersConnector::class, |
42 | - function () use ($builder) { |
|
42 | + function() use ($builder) { |
|
43 | 43 | return new LoadHandlersConnector( |
44 | 44 | $builder->build(MessageHandlerRegistry::class), |
45 | 45 | $builder->build(IncomingContextFactory::class) |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $pipelineModifications->registerStep( |
50 | 50 | 'InvokeHandlerTerminator', |
51 | 51 | InvokeHandlerTerminator::class, |
52 | - function () use ($builder) { |
|
52 | + function() use ($builder) { |
|
53 | 53 | return new InvokeHandlerTerminator(); |
54 | 54 | } |
55 | 55 | ); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $pipelineModifications->registerStep( |
38 | 38 | 'AttachCorrelationIdPipelineStep', |
39 | 39 | AttachCorrelationIdPipelineStep::class, |
40 | - function () { |
|
40 | + function() { |
|
41 | 41 | return new AttachCorrelationIdPipelineStep(); |
42 | 42 | } |
43 | 43 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $this->enableByDefault(); |
22 | 22 | $this->registerDefault( |
23 | - function (Settings $settings) { |
|
23 | + function(Settings $settings) { |
|
24 | 24 | /** @var TransportInfrastructure $transportInfrastructure */ |
25 | 25 | $transportInfrastructure = $settings->get(TransportInfrastructure::class); |
26 | 26 | $settings->setDefault( |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $this->enableByDefault(); |
21 | 21 | $this->dependsOn(TransportFeature::class); |
22 | 22 | $this->registerPrerequisite( |
23 | - function (Settings $settings) { |
|
23 | + function(Settings $settings) { |
|
24 | 24 | return !$settings->tryGet(KnownSettingsEnum::SEND_ONLY); |
25 | 25 | }, |
26 | 26 | "Endpoint is configured as send only." |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $builder->defineSingleton(QueueCreatorInterface::class, $receiveInfrastructure->getQueueCreatorFactory()); |
51 | 51 | |
52 | 52 | $this->registerInstallTask( |
53 | - function () use ($builder, $settings) { |
|
53 | + function() use ($builder, $settings) { |
|
54 | 54 | return new QueueCreatorFeatureInstallTask($builder->build(QueueCreatorInterface::class), $settings); |
55 | 55 | } |
56 | 56 | ); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | { |
67 | 67 | $this->brokerModel->consume( |
68 | 68 | $this->pushSettings->getInputQueue(), |
69 | - function (\AMQPEnvelope $envelope, \AMQPQueue $queue) { |
|
69 | + function(\AMQPEnvelope $envelope, \AMQPQueue $queue) { |
|
70 | 70 | return $this->messageProcessor->process( |
71 | 71 | $envelope, |
72 | 72 | $queue, |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function configureSendInfrastructure() |
64 | 64 | { |
65 | 65 | return new TransportSendInfrastructure( |
66 | - function () { |
|
66 | + function() { |
|
67 | 67 | return new RabbitMqMessageDispatcher( |
68 | 68 | $this->routingTopology, $this->brokerModel, new MessageConverter() |
69 | 69 | ); |
@@ -77,13 +77,13 @@ discard block |
||
77 | 77 | public function configureReceiveInfrastructure() |
78 | 78 | { |
79 | 79 | return new TransportReceiveInfrastructure( |
80 | - function () { |
|
80 | + function() { |
|
81 | 81 | return new RabbitMqMessagePusher( |
82 | 82 | $this->brokerModel, |
83 | 83 | new MessageProcessor($this->brokerModel, $this->routingTopology, new MessageConverter()) |
84 | 84 | ); |
85 | 85 | }, |
86 | - function () { |
|
86 | + function() { |
|
87 | 87 | return new RabbitMqQueueCreator( |
88 | 88 | $this->brokerModel, |
89 | 89 | $this->routingTopology, |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | public function configureSubscriptionInfrastructure() |
100 | 100 | { |
101 | 101 | return new TransportSubscriptionInfrastructure( |
102 | - function () { |
|
102 | + function() { |
|
103 | 103 | return new RabbitMqSubscriptionManager( |
104 | 104 | $this->brokerModel, |
105 | 105 | $this->routingTopology, |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $this->enableByDefault(); |
28 | 28 | $this->registerPrerequisite( |
29 | - function (Settings $settings) { |
|
29 | + function(Settings $settings) { |
|
30 | 30 | return !$settings->tryGet(KnownSettingsEnum::SEND_ONLY); |
31 | 31 | }, |
32 | 32 | "Endpoint is configured as send only." |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $pipelineModifications->registerStep( |
56 | 56 | 'OutboxConnector', |
57 | 57 | OutboxConnector::class, |
58 | - function () use ($builder) { |
|
58 | + function() use ($builder) { |
|
59 | 59 | /** @var PipelineFactory $pipelineFactory */ |
60 | 60 | $pipelineFactory = $builder->build(PipelineFactory::class); |
61 | 61 | return new OutboxConnector( |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $pipelineModifications->registerStep( |
40 | 40 | 'LoadHandlersConnector', |
41 | 41 | LoadHandlersConnector::class, |
42 | - function () use ($builder) { |
|
42 | + function() use ($builder) { |
|
43 | 43 | return new LoadHandlersConnector( |
44 | 44 | $builder->build(MessageHandlerRegistry::class), |
45 | 45 | $builder->build(IncomingContextFactory::class) |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $pipelineModifications->registerStep( |
50 | 50 | 'InvokeHandlerTerminator', |
51 | 51 | InvokeHandlerTerminator::class, |
52 | - function () use ($builder) { |
|
52 | + function() use ($builder) { |
|
53 | 53 | return new InvokeHandlerTerminator(); |
54 | 54 | } |
55 | 55 | ); |