Skip to content

Commit 8ff6306

Browse files
committed
minor #8967 Reworded the note about dump() availability per environment (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes #8967). Discussion ---------- Reworded the note about dump() availability per environment This fixes #8731. Commits ------- ab5ac1e Reworded the note about dump() availability per environment
2 parents a3bb54c + ab5ac1e commit 8ff6306

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

templating/debug.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ The same mechanism can be used in Twig templates thanks to ``dump()`` function:
4646
</a>
4747
{% endfor %}
4848

49-
By design, the ``dump()`` function is only available if the ``kernel.debug``
50-
setting (in ``config.yml``) is ``true``, to avoid leaking sensitive information
51-
in production. In fact, trying to use the ``dump()`` function when ``kernel.debug``
52-
is ``false`` (for example in the ``prod`` environment) will result in an
53-
application error.
49+
By design, the ``dump()`` function is only available in the ``dev`` and ``test``
50+
environments, to avoid leaking sensitive information in production. In fact,
51+
trying to use the ``dump()`` function in the ``prod`` environment will result in
52+
a PHP error.

0 commit comments

Comments
 (0)