Problem
In Symfony this need is very common: "given an arbitrary variable, return its best possible representation as a string".
Today we solve this problem at least in 6 different ways across different bundles and components:
We "can't" use VarDumper because we need a pure value exporter which doesn't add CSS/JS code or other advanced stuff.
Solution
Improve VarDumper to export variables in the simplest way possible so we can replace the existing code and get the exact same results.
Problem
In Symfony this need is very common: "given an arbitrary variable, return its best possible representation as a string".
Today we solve this problem at least in 6 different ways across different bundles and components:
Symfony\Component\HttpKernel\DataCollector\Util) used mostly in DataCollectors.Symfony\Component\HttpKernel\DataCollector)TraceableEventDispatcherSymfony/Component/Config/Exception)We "can't" use VarDumper because we need a pure value exporter which doesn't add CSS/JS code or other advanced stuff.
Solution
Improve VarDumper to export variables in the simplest way possible so we can replace the existing code and get the exact same results.