-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
Suggest installing symfony/debug #619
Conversation
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.
Pull request passes validation.
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.
Pull request passes validation.
But this isn’t a suggestion, it’s a hard dependency, isn’t it? If it exists it’s enabled, if not you cannot go further. Or am I wrong? |
@@ -9,7 +9,11 @@ | |||
if ($_SERVER['APP_DEBUG']) { | |||
umask(0000); | |||
|
|||
Debug::enable(); | |||
if (class_exists(Debug::class)) { | |||
Debug::enable(); |
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 understand wrapping this in an if and only running when it exists, but I don’t understand throwing an exception if it doesn’t exist.
On another recipe/PR, I suggested moving the Debug class to the new component. Applies here too. |
Yes, that would solve the problem. I'll make the move, but that mean the Debug component is almost empty, does it make sense move all and deprecating it completely? |
The Or, since the
The problem with splitting is that if we have new debug behaviors, it would be better to have a single method like |
Closing in favor of symfony/symfony#32303 |
See symfony/symfony#32270