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

Appearance settings

Twig dump() function is NOT available on prod #7937

Copy link
Copy link
Closed
@weaverryan

Description

@weaverryan
Issue body actions

At the bottom of: http://symfony.com/doc/current/templating/debug.html

We say:

By default this means that the variables will be dumped in the dev environment but not the prod environment.

This seems to suggest that dump() will just do nothing in prod. But actually, as far as I can see, this function is not available at all, causing templates to fail in prod. That's because the DumpExtension from DebugBundle that provides dump() is not used, because DebugBundle is not enabled in the prod environment.

We should clarify that leaving dump() in your code is a big problem :).

Metadata

Metadata

Assignees

Labels

bughasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.