Internal Message Handler
Service Activator PHP
How to register
class Shop
{
#[InternalHandler("buyProduct")]
public function buyProduct(int $productId) : void
{
echo "Product with id {$productId} was bought";
}
}Possible options
Last updated
Was this helpful?