Closed
Description
Symfony version(s) affected
5.4
Description
In the Messenger component, several classes depend on Symfony's EventDispatcherInterface
rather than the PSR-14 dispatcher interface. In each case the PSR interface is sufficient for the class's needs, but the current type declaration precludes using Messenger with a non-Symfony PSr-14 dispatcher. This should be corrected to use PSR-14 directly for easier reuse.
Specifically:
Worker
ConsumesMessagesCommand
FailedMessagesRetryCommand
SendMessageMiddleware
SendFailedMessageForRetryListener
How to reproduce
See the classes in the code.
Possible Solution
No response
Additional Context
No response
/cc @weaverryan