Relative Content

Tag Archive for phpsymfonysymfony-messenger

Symfony 6.4 Messenger problem with #[AsMessageHandler(fromTransport: ‘sync’)]

I have configured my project with Symfony 6.4 and Messenger. I have create 2 transports (sync and async) on an event bus. When I dispatch a message, this message goes on the 2 transports that’s what I want. On the handler I have add the fromTransport attribute to define when the handler run. Normally the message must handle only when the transport is sync but it runs on async too…