Skip to content

Reworded the note about dump() not being available in prod #7954

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

Closed
wants to merge 2 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #7937.

The variables will only be dumped if Twig's ``debug`` setting (in ``config.yml``)
is ``true``. By default this means that the variables will be dumped in the
``dev`` environment but not the ``prod`` environment.
By design, the ``dump()`` function is only available if the ``debug`` setting
Copy link
Member

Choose a reason for hiding this comment

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

I think we should make more clear what the debug setting is (one may confuse twig.debug and kernel.debug which are probably the same, but which still can differ).

@xabbuh xabbuh added this to the 2.7 milestone May 29, 2017
@xabbuh
Copy link
Member

xabbuh commented Jul 7, 2017

Thank you Javier.

xabbuh added a commit that referenced this pull request Jul 7, 2017
…d (javiereguiluz)

This PR was squashed before being merged into the 2.7 branch (closes #7954).

Discussion
----------

Reworded the note about dump() not being available in prod

This fixes #7937.

Commits
-------

830ac84 Reworded the note about dump() not being available in prod
@xabbuh xabbuh closed this Jul 7, 2017
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.

3 participants