-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Description
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:
- I'm a bit disappointed that you didn't add an entry to the UPGRADE documents for these.
- I suspect the corresponding documentation might be forgotten:
https://github.com/symfony/symfony-docs/blame/6.0/components/event_dispatcher.rst#L257-L263