8000 Messenger depends on EventDispatcher, not PSR-14 · Issue #45963 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Messenger depends on EventDispatcher, not PSR-14 #45963
Closed
@Crell

Description

@Crell

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0