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

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
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Better explained which *.debug parameter controls Twig's dump() function
  • Loading branch information
javiereguiluz committed Jul 2, 2017
commit eed27161fcdcf94db02a432922eaf1645d011f37
8 changes: 4 additions & 4 deletions 8 templating/debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ The same mechanism can be used in Twig templates thanks to ``dump()`` function:
</a>
{% endfor %}

By design, the ``dump()`` function is only available if the ``debug`` setting
(in ``config.yml``) is ``true``, to avoid leaking sensitive information in
production. In fact, trying to use the ``dump()`` function when ``debug`` is
``false`` (for example in the ``prod`` environment) will result in an
By design, the ``dump()`` function is only available if the ``kernel.debug``
setting (in ``config.yml``) is ``true``, to avoid leaking sensitive information
in production. In fact, trying to use the ``dump()`` function when ``kernel.debug``
is ``false`` (for example in the ``prod`` environment) will result in an
application error.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.