Asynchronous Message Handlers
Running Asynchronously
#[Asynchronous("orders")]
#[CommandHandler(endpointId: "place_order_endpoint")
public function placeOrder(PlaceOrderCommand $command) : void
{
// do something with $command
}#[Asynchronous("orders")]
#[EventHandler(endpointId: "order_was_placed")
public function when(OrderWasPlaced $event) : void
{
// do something with $event
}Message Channel
Running Message Consumer
Dynamic Configuration
Static Configuration
Available Providers (Types)
Multiple Asynchronous Endpoints
Asynchronous Class
Intercepting asynchronous endpoint
Endpoint Id
Last updated
Was this helpful?