| @@ 64-79 (lines=16) @@ | ||
| 61 | * |
|
| 62 | * @return IncomingLogicalMessageContext |
|
| 63 | */ |
|
| 64 | public function createLogicalMessageContext( |
|
| 65 | IncomingLogicalMessage $logicalMessage, |
|
| 66 | IncomingPhysicalMessageContext $parentContext |
|
| 67 | ) { |
|
| 68 | return new IncomingLogicalMessageContext( |
|
| 69 | $logicalMessage, |
|
| 70 | $parentContext->getMessageId(), |
|
| 71 | $parentContext->getHeaders(), |
|
| 72 | $parentContext->getIncomingPhysicalMessage(), |
|
| 73 | $parentContext->getPendingTransportOperations(), |
|
| 74 | $this->busOperations, |
|
| 75 | $this->outgoingOptionsFactory, |
|
| 76 | $parentContext->getEndpointControlToken(), |
|
| 77 | $parentContext |
|
| 78 | ); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * @param MessageHandlerInterface $messageHandler |
|
| @@ 87-103 (lines=17) @@ | ||
| 84 | * |
|
| 85 | * @return InvokeHandlerContext |
|
| 86 | */ |
|
| 87 | public function createInvokeHandlerContext( |
|
| 88 | MessageHandlerInterface $messageHandler, |
|
| 89 | IncomingLogicalMessageContext $parentContext |
|
| 90 | ) { |
|
| 91 | return new InvokeHandlerContext( |
|
| 92 | $messageHandler, |
|
| 93 | $parentContext->getMessage()->getMessageInstance(), |
|
| 94 | $parentContext->getMessageId(), |
|
| 95 | $parentContext->getHeaders(), |
|
| 96 | $parentContext->getIncomingPhysicalMessage(), |
|
| 97 | $parentContext->getPendingTransportOperations(), |
|
| 98 | $this->busOperations, |
|
| 99 | $this->outgoingOptionsFactory, |
|
| 100 | $parentContext->getEndpointControlToken(), |
|
| 101 | $parentContext |
|
| 102 | ); |
|
| 103 | } |
|
| 104 | } |
|
| 105 | ||