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 0fbaf44 commit 9eefe1bCopy full SHA for 9eefe1b
templates.rst
@@ -728,11 +728,19 @@ depending on your needs:
728
and they are visible on the web page #}
729
{{ dump(article) }}
730
731
+ {# optionally, use argument names to display them as labels next to
732
+ the dumped contents #}
733
+ {{ dump(blog_posts: articles, user: app.user) }}
734
+
735
<a href="/article/{{ article.slug }}">
736
{{ article.title }}
737
</a>
738
{% endfor %}
739
740
+.. versionadded:: 6.3
741
742
+ The option to use argument names in ``dump()`` was introduced in Symfony 6.3.
743
744
To avoid leaking sensitive information, the ``dump()`` function/tag is only
745
available in the ``dev`` and ``test`` :ref:`configuration environments <configuration-environments>`.
746
If you try to use it in the ``prod`` environment, you will see a PHP error.
0 commit comments