Headers Conversion
Scalar Headers
// execution
$commandBus->send(
$command,
metadata: [
'executorId' => '1234'
]
)#[Asynchronous('async')]
#[CommandHandler]
public function placeOrder(
PlaceOrderCommand $command,
#[Header('executorId')] string $executorId
)
{
// do something
}Converting Scalars on the Message Endpoint
Class Headers
Dealing with Collections
Last updated
Was this helpful?