Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[VarDumper] Adding semantics with metadata#6946
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
b4ef2d8 to7e78c34Compare| The VarDumper component provides mechanisms forwalking through any | ||
| arbitrary PHPvariable. Built on top, it provides a better ``dump()`` | ||
| functionthat you can use instead of:phpfunction:`var_dump`. | ||
| The VarDumper component provides mechanisms forextracting the state out of |
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.
extracting the state ->extracting the contents ?
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.
state = content + context/metadata
7e78c34 tof09d36dComparef09d36d tof9b206bCompare…identifiers (nicolas-grekas)This PR was merged into the 3.2-dev branch.Discussion----------[VarDumper] Add ClassStub for clickable & shorter PHP identifiers| Q | A| ------------- | ---| Branch? | master| New feature? | yes| Tests pass? | yes| License | MIT| Doc PR |symfony/symfony-docs#6946Tells dumpers when PHP identifiers are used so that they can shorten the namespace and create IDE links to the source.(PR also embeds some fixes/cleanups)Commits-------788f7e8 [VarDumper] Add ClassStub for clickable & shorter PHP identifiers
| // $output is now populated with the dump representation of $variable | ||
| ..versionadded::3.2 | ||
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.
this empty line has to be removed
wouterj commentedSep 3, 2016
status: needs work |
f9b206b toe8afe0bComparenicolas-grekas commentedSep 14, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
comments addressed |
wouterj commentedSep 18, 2016
👍 |
components/var_dumper/advanced.rst Outdated
| Whatever the cloned data structure, resulting ``Data`` objects are always | ||
| serializable. | ||
| A cloner applies limits when creating the representation, so that the one |
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.
[...] the cloned one [...]
components/var_dumper/advanced.rst Outdated
| $output = $dumper->dump($cloner->cloneVar($variable), true); | ||
| ..versionadded::3.2 | ||
| The ability to return as string was introduced in Symfony 3.2. |
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.
[...] to return a string [...]
components/var_dumper/advanced.rst Outdated
| Before writing your own casters, you should check the existing ones. | ||
| Adding semantics with metadata |
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.
Adding Semantics with Metadata
components/var_dumper/advanced.rst Outdated
| Since casters are hooked on specific classes or interfaces, they know about the | ||
| objects they manipulate. By altering the ``$stub`` object (the third argument of | ||
| any casters), one can transfer this knowledge to the resulting ``Data`` object, |
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.
any caster
e8afe0b to3033bc7Comparenicolas-grekas commentedSep 21, 2016
addressed |
javiereguiluz commentedOct 14, 2016
👍 |
xabbuh commentedOct 14, 2016
Thank you Nicolas. |
…kas)This PR was merged into the master branch.Discussion----------[VarDumper] Adding semantics with metadataCommits-------3033bc7 [VarDumper] Adding semantics with metadata
No description provided.