Add a default Event to dispatch events with just a name#40592
Add a default Event to dispatch events with just a name#40592DeepDiver1975 merged 1 commit intomasterfrom
Conversation
3f1a132 to
3c1ffc6
Compare
|
Kudos, SonarCloud Quality Gate passed! |
|
So updating the dispatch to Symfony 5 will break all apps which dispatch events ..... well so be it .... |
Yes, the order of parameters to If/when we actually go to Symfony5, we first should get the "Some time later" we can bump core to Symfony5. I am trying to find the obvious things that need adjusting in core now, and they can be in 10.12. That is a small step forward. There is security support for Symfony4 to Nov 2023, so we have time to gradually sort this out. |








Description
In Symfony 5,
eventDispatcher->dispatchmust be passed an Event as the first parameter, followed by the event name.In Symfony 4, an event can be dispatched with just a name (as the first parameter) or can have an Event and name (the Symfony 5 call interface)
This PR adjusts the remaining eventDispatcher->dispatch calls so that thet all pass an event as the first parameter.
Related Issue
#39630
How Has This Been Tested?
CI
Types of changes
Checklist: