File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -728,11 +728,19 @@ depending on your needs:
728728 and they are visible on the web page #}
729729 {{ dump(article) }}
730730
731+ {# optionally, use named arguments to display them as labels next to
732+ the dumped contents #}
733+ {{ dump(blog_posts: articles, user: app.user) }}
734+
731735 <a href="/article/{{ article.slug }}">
732736 {{ article.title }}
733737 </a>
734738 {% endfor %}
735739
740+ .. versionadded :: 6.3
741+
742+ The option to use named arguments in ``dump() `` was introduced in Symfony 6.3.
743+
736744To avoid leaking sensitive information, the ``dump() `` function/tag is only
737745available in the ``dev `` and ``test `` :ref: `configuration environments <configuration-environments >`.
738746If you try to use it in the ``prod `` environment, you will see a PHP error.
You can’t perform that action at this time.
0 commit comments