Upgrading symfony/event-dispatcher 5 to 6
Breakingv5.4.45 → v6.4.44Breaking6Platform1Deprecated3New34Changed10Fixed14
BreakingUpgrade verdict
6 breaking changes and a platform requirement change.
In plain terms
- Renames service notifier.logger_notification_listener to notifier.notification_logger_listener.
- You can no longer set tags through RegisterListenersPass.
- The LegacyEventDispatcherProxy class is gone, so code using it must be updated.
- Code that was deprecated in earlier versions has been deleted.
Must act Top 5 of 10 that need code or config changes
PHP requirement changed in v6.1.0-BETA1: >=7.2.5 → >=8.1.
Drops symfony/deprecation-contracts, symfony/polyfill-php80.
Moves symfony/event-dispatcher-contracts ^2|^3 → ^2.5|^3. Your build may pick other versions.
What you must change
Breaking6
Renames service notifier.logger_notification_listener to notifier.notification_logger_listener.
notifier.logger_notification_listenernotifier.notification_logger_listenerRemoves the ability to configure tags on RegisterListenersPass.
RegisterListenersPassRemoves LegacyEventDispatcherProxy.
LegacyEventDispatcherProxyRemoves deprecated code.
Replaces MissingConstructorArgumentsException with MissingConstructorArgumentException.
MissingConstructorArgumentsExceptionMissingConstructorArgumentExceptionAdds return types and bumps the component to v3.
Platform1
Bumps the minimum required PHP version to 8.1.
Deprecations to plan for
Deprecated3
Deprecates GoogleChat CardsV1 in favor of cardsV2.
CardsV1cardsV2Deprecates enabling the SecurityBundle without configuring it.
Deprecates configuring tags on RegisterListenersPass.
RegisterListenersPass