We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a216951 commit 5e5d567Copy full SHA for 5e5d567
templating/debug.rst
@@ -46,6 +46,8 @@ The same mechanism can be used in Twig templates thanks to ``dump()`` function:
46
</a>
47
{% endfor %}
48
49
-The variables will only be dumped if Twig's ``debug`` setting (in ``config.yml``)
50
-is ``true``. By default this means that the variables will be dumped in the
51
-``dev`` environment but not the ``prod`` environment.
+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
52
+``false`` (for example in the ``prod`` environment) will result in an
53
+application error.
0 commit comments