-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Collect data from every event dispatcher #49151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HttpKernel] Collect data from every event dispatcher #49151
Conversation
2e832b7
to
e00675a
Compare
We should not mix the listeners of various event dispatchers. That would make debugging much harder (as listeners from different dispatchers are totally separate lists). If we can profile multiple dispatchers, the webprofiler panel must display them separately (see how the mailer panel handles a project with multiple mailers configured for instance). |
@stof is that what you meant? |
Yeah, it should look like that (and it means you won't ever mix the listeners from multiple TraceableEventDispatcher together and so you won't re-sort anything in the collector) |
792075f
to
6af1697
Compare
Indeed; PR updated thanks! |
aac6d83
to
9770a9c
Compare
8ccd9af
to
7e014a1
Compare
7e014a1
to
a6f8a00
Compare
a6f8a00
to
b69b194
Compare
src/Symfony/Component/HttpKernel/DataCollector/EventDataCollector.php
Outdated
Show resolved
Hide resolved
30b7e78
to
0dd6d17
Compare
e658f9f
to
cfb35e8
Compare
No deprecation anymore 👌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I like this path.
src/Symfony/Component/HttpKernel/DataCollector/EventDataCollector.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/DataCollector/EventDataCollector.php
Outdated
Show resolved
Hide resolved
43164f5
to
6396377
Compare
6396377
to
a204629
Compare
a204629
to
7a77b3a
Compare
Thank you @MatTheCat. |
Thank you for finishing this! |
Follow-up of #49021: instead of only passing the main event dispatcher to the
EventDataCollector
, we pass them all (thanks to theevent_dispatcher.dispatcher
tag).(The heading is now “Dispatched Events”.)
Check “Hide whitespace” when reviewing.