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 830ac84Copy full SHA for 830ac84
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 ``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``
52
+is ``false`` (for example in the ``prod`` environment) will result in an
53
+application error.
0 commit comments