@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $builder->defineSingleton( |
| 49 | 49 | UnicastRouterInterface::class, |
| 50 | - function () use ($localAddress, $builder, $settings) { |
|
| 50 | + function() use ($localAddress, $builder, $settings) { |
|
| 51 | 51 | return new UnicastRouter( |
| 52 | 52 | $localAddress, |
| 53 | 53 | $builder->build(UnicastRoutingTable::class), |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $pipelineModifications->registerStep( |
| 60 | 60 | 'UnicastSendRoutingConnector', |
| 61 | 61 | UnicastSendRoutingConnector::class, |
| 62 | - function () use ($builder) { |
|
| 62 | + function() use ($builder) { |
|
| 63 | 63 | return new UnicastSendRoutingConnector( |
| 64 | 64 | $builder->build(UnicastRouterInterface::class), |
| 65 | 65 | $builder->build(OutgoingContextFactory::class) |
@@ -69,14 +69,14 @@ discard block |
||
| 69 | 69 | $pipelineModifications->registerStep( |
| 70 | 70 | 'UnicastReplyRoutingConnector', |
| 71 | 71 | UnicastReplyRoutingConnector::class, |
| 72 | - function () use ($builder) { |
|
| 72 | + function() use ($builder) { |
|
| 73 | 73 | return new UnicastReplyRoutingConnector($builder->build(OutgoingContextFactory::class)); |
| 74 | 74 | } |
| 75 | 75 | ); |
| 76 | 76 | $pipelineModifications->registerStep( |
| 77 | 77 | 'MulticastPublishRoutingConnector', |
| 78 | 78 | MulticastPublishRoutingConnector::class, |
| 79 | - function () use ($builder) { |
|
| 79 | + function() use ($builder) { |
|
| 80 | 80 | return new MulticastPublishRoutingConnector($builder->build(OutgoingContextFactory::class)); |
| 81 | 81 | } |
| 82 | 82 | ); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $pipelineModifications->registerStep( |
| 87 | 87 | 'AttachReplyToAddressPipelineStep', |
| 88 | 88 | AttachReplyToAddressPipelineStep::class, |
| 89 | - function () use ($localAddress) { |
|
| 89 | + function() use ($localAddress) { |
|
| 90 | 90 | return new AttachReplyToAddressPipelineStep($localAddress); |
| 91 | 91 | } |
| 92 | 92 | ); |
@@ -102,14 +102,14 @@ discard block |
||
| 102 | 102 | $pipelineModifications->registerStep( |
| 103 | 103 | 'SubscribeTerminator', |
| 104 | 104 | SubscribeTerminator::class, |
| 105 | - function () use ($builder) { |
|
| 105 | + function() use ($builder) { |
|
| 106 | 106 | return new SubscribeTerminator($builder->build(SubscriptionManagerInterface::class)); |
| 107 | 107 | } |
| 108 | 108 | ); |
| 109 | 109 | $pipelineModifications->registerStep( |
| 110 | 110 | 'UnsubscribeTerminator', |
| 111 | 111 | UnsubscribeTerminator::class, |
| 112 | - function () use ($builder) { |
|
| 112 | + function() use ($builder) { |
|
| 113 | 113 | return new UnsubscribeTerminator($builder->build(SubscriptionManagerInterface::class)); |
| 114 | 114 | } |
| 115 | 115 | ); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | { |
| 17 | 17 | $this->enableByDefault(); |
| 18 | 18 | $this->registerPrerequisite( |
| 19 | - function (Settings $settings) { |
|
| 19 | + function(Settings $settings) { |
|
| 20 | 20 | return !$settings->tryGet(KnownSettingsEnum::SEND_ONLY); |
| 21 | 21 | }, |
| 22 | 22 | "Send only endpoints can't autosubscribe." |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | public function setup(Settings $settings, BuilderInterface $builder, PipelineModifications $pipelineModifications) |
| 32 | 32 | { |
| 33 | 33 | $this->registerStartupTask( |
| 34 | - function (BuilderInterface $builder) { |
|
| 34 | + function(BuilderInterface $builder) { |
|
| 35 | 35 | /** @var MessageHandlerRegistry $handlerRegistry */ |
| 36 | 36 | $handlerRegistry = $builder->build(MessageHandlerRegistry::class); |
| 37 | 37 | return new SubscriptionApplierStartupTask($handlerRegistry->getEventFqcns()); |
@@ -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 | ); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $pipelineModifications->registerStep( |
| 44 | 44 | 'OutgoingPhysicalToDispatchConnector', |
| 45 | 45 | OutgoingPhysicalToDispatchConnector::class, |
| 46 | - function () use ($builder) { |
|
| 46 | + function() use ($builder) { |
|
| 47 | 47 | return new OutgoingPhysicalToDispatchConnector( |
| 48 | 48 | $builder->build(OutgoingContextFactory::class), |
| 49 | 49 | $builder->build(DateTimeConverter::class), |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $pipelineModifications->registerStep( |
| 55 | 55 | 'ImmediateDispatchTerminator', |
| 56 | 56 | ImmediateDispatchTerminator::class, |
| 57 | - function () use ($builder) { |
|
| 57 | + function() use ($builder) { |
|
| 58 | 58 | return new ImmediateDispatchTerminator($builder->build(MessageDispatcherInterface::class)); |
| 59 | 59 | } |
| 60 | 60 | ); |
@@ -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, |