Skip to content

[EventDispatcher] Question about RemoveListenersPass configurability in 6.0 #41698

@tscni

Description

@tscni

Symfony version(s) affected: 5.3, 6.0

Description
Not specifically a Bug report but more of a question about a change.

#40468 and #41358 deprecated / remove configurability from EventDispatchers RegisterListenersPass. The default configuration is a bit specific to the FrameworkBundle though (e.g. requires the event_dispatcher service id) and usages outside of that might very well have to configure them differently (e.g. I use EventDispatcher::class).

I'd prefer if I could still configure it (service id and listener tag in my case) directly. Having to add a decorator seems a bit cumbersome.
But if all these compiler passes are meant to be tied to the FrameworkBundle, shouldn't they be moved there instead?

Also:

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