-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[FrameworkBundle] Enable console profiling only if the console is actually available #62692
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
|
Can you rebase for 7.4? The method call is missing there also. |
in 7.4 we check for the (deprecated) CliRequest::class i guess removing references to the deprecated class was the reason for this regression. i think i would leave 7.4 as is, it works fine. but if you prefer, i can do a PR against 7.4 to replace the class_exists check with a hasConsole call. |
|
I'd keep both calls on 7.4: hasMethod because the method is protected so that it's a possible extension point, and class_exists as a feature test |
dfff0df to
855e836
Compare
this fixes a regression introduced in ea5a3cc
855e836 to
5ab5322
Compare
|
okay, i target 7.4 now. there will be a conflict when merging up to 8.0 |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Show resolved
Hide resolved
|
Thank you @dbu. |
The FrameworkExtension is generally aware that symfony/console is an optional dependency, but when the profiler is loaded, it loads the console profiler unconditionally. this has been broken when the check for CliRequest::class was removed but not replaced with an other check for availability of the console