Message Consumer
Modules Providing Support
Message Consumer Implementation
class Consumer
{
// 1. Message Consumer
#[MessageConsumer("consumer")]
// 2. Method declaration
public function execute(string $message, array $headers) : void
{
// do something with Message
// if you have converter registered you can type hint exact type you expect
}
}Last updated
Was this helpful?