Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[VarDumper] Add maxDepth & maxStringLength display options #18948

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

Merged
merged 2 commits into from
Jun 28, 2016

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #16741
License MIT
Doc PR -

Takes over #18148 to add display options to html dumps.
Status: needs work

@nicolas-grekas nicolas-grekas changed the title Dump display opts [VarDumper] Add display options (initDepth, maxDepth, maxStringLength) Jun 2, 2016
);
protected $displayOptions = array(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be private

display:none;
}
pre.sf-dump .max-string-length.collapsed .expanded {
display:none
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing delimiter.

@nicolas-grekas nicolas-grekas force-pushed the dump-display-opts branch 4 times, most recently from b5526ef to c7acc7f Compare June 6, 2016 08:05
@fabpot
Copy link
Member

fabpot commented Jun 9, 2016

@nicolas-grekas Can you finish this one?

@fabpot
Copy link
Member

fabpot commented Jun 16, 2016

@nicolas-grekas What's the status of this one?

@nicolas-grekas
Copy link
Member Author

I'm on it :)

@nicolas-grekas nicolas-grekas force-pushed the dump-display-opts branch 2 times, most recently from 1a83101 to 3321b96 Compare June 25, 2016 15:51
@nicolas-grekas nicolas-grekas changed the title [VarDumper] Add display options (initDepth, maxDepth, maxStringLength) [VarDumper] Add maxDepth & maxStringLength display options Jun 25, 2016
@nicolas-grekas nicolas-grekas force-pushed the dump-display-opts branch 3 times, most recently from 3839ad5 to b885c8d Compare June 25, 2016 16:01
@nicolas-grekas
Copy link
Member Author

I finally managed to finish this one.

@MGDSoft FYI, I removed the initDepth/maxDepth distinction: it felt strange when playing with the UI. I kept only your initDepth behavior, renamed as maxDepth.

See this fiddle to try the resulting behavior (maxDepth=2):
https://jsfiddle.net/Lz08fgct/

Status: needs review

@@ -76,6 +82,17 @@ public function setStyles(array $styles)
}

/**
* Configures display options.
*
* @param array $displayOptions A map of display options to customize the behavior.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no dot at the end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahah, you've been doing that for a long time, working on a PR to fix that :)

@fabpot
Copy link
Member

fabpot commented Jun 28, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 998ff33 into symfony:master Jun 28, 2016
fabpot added a commit that referenced this pull request Jun 28, 2016
…ions (MGDSoft, nicolas-grekas)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[VarDumper] Add maxDepth & maxStringLength display options

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16741
| License       | MIT
| Doc PR        | -

Takes over #18148 to add display options to html dumps.
Status: needs work

Commits
-------

998ff33 [VarDumper] Tweak display options implementation
58eb665 [VarDumper] Add maxDepth & maxStringLength display options
@HeahDude
Copy link
Contributor

Nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants