Skip to content

Upgrading symfony/event-dispatcher 5 to 6

Breakingv5.4.45 → v6.4.44Breaking6Platform1Deprecated3New34Changed10Fixed14

BreakingUpgrade verdict

6 breaking changes and a platform requirement change.

  • 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.
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.

Breaking6
Renames service notifier.logger_notification_listener to notifier.notification_logger_listener.
notifier.logger_notification_listenernotifier.notification_logger_listener
Removes the ability to configure tags on RegisterListenersPass.
RegisterListenersPass
Removes LegacyEventDispatcherProxy.
LegacyEventDispatcherProxy
Removes deprecated code.
Replaces MissingConstructorArgumentsException with MissingConstructorArgumentException.
MissingConstructorArgumentsExceptionMissingConstructorArgumentException
Adds return types and bumps the component to v3.
Platform1
Bumps the minimum required PHP version to 8.1.
Deprecated3
Deprecates GoogleChat CardsV1 in favor of cardsV2.
CardsV1cardsV2
Deprecates enabling the SecurityBundle without configuring it.
Deprecates configuring tags on RegisterListenersPass.
RegisterListenersPass