Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixing a bug where the dump() function depended on bundle ordering#25824

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

Merged
fabpot merged 1 commit into2.7fromweaverryan-patch-1
Jan 17, 2018

Conversation

@weaverryan
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsnone
LicenseMIT
Doc PRnot needed

If DebugBundle is registeredbefore TwigBundle, then the simplerdump() function wins over the fancy, var-dumper one from DebugBundle. In other words, you get different functionality based on theorder in which you install libraries. To get the "bad" way, you can:

composer create-project symfony/skeleton show_bad_dumpcd show_bad_dumpcomposer require symfony/debug-bundlecomposer require twig

Then create a Twig template with adump() inside. It will use the less-fancy XDebug version.

I'm not sure if there's a more elegant fix for this or not... I have verified locally that this DOES fix the issue.

Thanks!

Ioni14 reacted with thumbs up emoji
@fabpot
Copy link
Member

Thank you@weaverryan.

@fabpotfabpot merged commit717663a into2.7Jan 17, 2018
fabpot added a commit that referenced this pull requestJan 17, 2018
…ordering (weaverryan)This PR was merged into the 2.7 branch.Discussion----------Fixing a bug where the dump() function depended on bundle ordering| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | not neededIf DebugBundle is registered *before* TwigBundle, then the simpler `dump()` function wins over the fancy, var-dumper one from DebugBundle. In other words, you get different functionality based on the *order* in which you install libraries. To get the "bad" way, you can:```composer create-project symfony/skeleton show_bad_dumpcd show_bad_dumpcomposer require symfony/debug-bundlecomposer require twig```Then create a Twig template with a `dump()` inside. It will use the less-fancy XDebug version.I'm not sure if there's a more elegant fix for this or not... I have verified locally that this DOES fix the issue.Thanks!Commits-------717663a Fixing a bug where the dump() function depended on bundle ordering
@nicolas-grekasnicolas-grekas deleted the weaverryan-patch-1 branchJanuary 18, 2018 07:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

5 participants

@weaverryan@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp