Skip to content

Messenger depends on EventDispatcher, not PSR-14 #45963

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy