-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Extend web profiler listener & config for replace on ajax requests #59123
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
Conversation
a948029
to
bb0c996
Compare
bb0c996
to
2a695ed
Compare
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.
I like this! Thanks Christopher.
The only thing that I'm not sure about is the name of the option: ajax_replace
is very concise, but to me it's not self-explanatory
Here are some new name proposals for your consideration:
update_toolbar_from_ajax
refresh_toolbar_with_ajax
ajax_toolbar_refresh
sync_toolbar_with_ajax
what about i would at least stick with |
Yes, I like |
2a695ed
to
ee2248b
Compare
@javiereguiluz reworked it a bit further to have a structured config |
086eb64
to
ee83789
Compare
ee83789
to
fe1f12a
Compare
Can you please think again about naming the parameter |
src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php
Show resolved
Hide resolved
@alexislefebvre it's just like more confusing to me if header and option don't use the same terminology, is it not? |
dfd14c2
to
e311eb3
Compare
src/Symfony/Bundle/WebProfilerBundle/Resources/config/schema/webprofiler-1.0.xsd
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/config/schema/webprofiler-1.0.xsd
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/config/schema/webprofiler-1.0.xsd
Outdated
Show resolved
Hide resolved
I'm sorry but I may miss some context here, what are header and option? |
the underlying feature is already part of Symfony => when setting the response header and since this config option is controlling whether the header is send or not, i would argue to have a similar wording - meaning to use the word "replace" for the option instead of renaming the header -> would be a breaking change without much value IMHO |
Thanks for the explanation. As a dev and end-user of WPB I will probably not know about the |
00b167e
to
e093c12
Compare
We can add an info to the option to make the intend more clear, but I would also reuse the wording here. @symfony/mergers please advice, thanks |
e093c12
to
979f45f
Compare
done from my point of view - also tested the xml config with attribute and element. |
979f45f
to
07b755d
Compare
src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php
Show resolved
Hide resolved
aa6761b
to
62a2507
Compare
src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php
Outdated
Show resolved
Hide resolved
62a2507
to
3a723b5
Compare
Thank you @chr-hertel. |
Basically a follow up of #26655 to make the feature of replacing the toolbar on ajax requests configurable instead of application side listeners for setting the
Symfony-Debug-Toolbar-Replace
header#SymfonyHackday