This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/VarDumper
Fabien Potencier 1738830e7c feature #12355 [VarDumper] Use symfony.com's colorscheme (nicolas-grekas, WouterJ)
This PR was merged into the 2.6-dev branch.

Discussion
----------

[VarDumper] Use symfony.com's colorscheme

As promised, this PR changed the current colorscheme to something used in Symfony. This means developers have a consistent experience and the colorscheme is easier to read.

While doings this, I also improved the `HtmlDumper#style()` method to make it easier to understand and maintain. I also changed a bit of the output it created, mostly adding visibility prefixes to properties.

**Before**
![sf-dump-before](https://cloud.githubusercontent.com/assets/749025/4828241/b070d32e-5f7e-11e4-9d51-865ffd47753e.png)

**After**
![sf-dump-after](https://cloud.githubusercontent.com/assets/749025/4828244/b4ec3e52-5f7e-11e4-9031-71f41bc30c25.png)

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | -
| Deprecations? | -
| Tests pass?   | -
| Fixed tickets | #12348
| License       | MIT
| Doc PR        | the one about the VarDumper

Commits
-------

07a1e70 Changed meta color
a316420 [VarDumper] use symfony.com colorscheme
7ffba44 [VarDumper] UML prefixes for properties
2014-11-02 01:18:24 +01:00
..
Caster [VarDumper] add meta-data on hover 2014-10-20 21:11:43 +02:00
Cloner [VarDumper] add meta-data on hover 2014-10-20 21:11:43 +02:00
Dumper feature #12355 [VarDumper] Use symfony.com's colorscheme (nicolas-grekas, WouterJ) 2014-11-02 01:18:24 +01:00
Exception [VarDumper] algo to clone any PHP variable to a breadth-first queue 2014-09-23 14:30:51 +02:00
Resources/functions [DebugBundle] adjust after review 2014-09-23 16:25:59 +02:00
Tests [VarDumper] UML prefixes for properties 2014-10-31 20:30:31 +01:00
composer.json [DebugBundle] adjust after review 2014-09-23 16:25:59 +02:00
LICENSE [VarDumper] README, LICENSE and composer.json 2014-09-23 14:30:52 +02:00
phpunit.xml.dist [DebugBundle] add tests for twig and for the bundle 2014-09-23 16:25:59 +02:00
README.md [TwigBridge] add Twig dump() function + tests and fixes 2014-09-23 16:26:00 +02:00
VarDumper.php [VarDumper] Sfdump JS ns and VarCloner replacing Ext+PhpCloner 2014-10-06 14:52:17 +02:00

Symfony mechanism for exploring and dumping PHP variables

This component provides a mechanism that allows exploring then dumping any PHP variable.

It handles scalars, objects and resources properly, taking hard and soft references into account. More than being immune to inifinite recursion problems, it allows dumping where references link to each other. It explores recursive structures using a breadth-first algorithm.

The component exposes all the parts involved in the different steps of cloning then dumping a PHP variable, while applying size limits and having specialized output formats and methods.