-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
dd() output colors not overridden by Laravel #24913
Comments
Maybe because Symfony added a "dd" helper that is taking precedence. See: this pull request on symfony's repo for details. |
Probably dd is defaulting in some kind of config file for dumping text, as devcircus said try to search inside the dd function. |
I can confirm the issue comes from Symfony adding a Perhaps we can keep using Symfony's |
Any PRs would be greatly appreciated. |
I'm struggling to find a way within the current implementation (in laravel) to even extend the symfony VarDumper. Maybe it's obvious; perhaps I've not had enough coffee today. You can remove the `use Illuminate\Support\Debug\Dumper;' statements everywhere, and the symfony dumper still works, so... where/when is it being implemented? I've never really done any edits on the framework so I'm kind of lost right now. |
The Laravel // Illuminate\Support\helpers.php
if (! function_exists('dd')) {} Of couse, you have to check for the existence first, or a fatal error will occur. So the only thing left for Laravel to do is remove the global The Symfony version is declared here Symfony/Component/VarDumper/Resources/functions. |
Right, I think that is understood at this point. It would still be nice to extend the existing symfony class in such a way that it overrode the $styles var set in Symfony\Component\VarDumper\Dumper\HtmlDumper. |
Looks like this is a won't fix: #25086 |
Description:
Calling dd() no longer overrides the (hard/uncomfortable to read, in my opinion) default styles of
Symfony\Component\VarDumper\Dumper\HtmlDumper
The
Illuminate\Support\Debug\HtmlDumper
class is still there, but it appears to not be having any effect on the dd() output.Steps To Reproduce:
The text was updated successfully, but these errors were encountered: