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:
728
728
and they are visible on the web page #}
729
729
{{ dump(article) }}
730
730
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
+
731
735
<a href="/article/{{ article.slug }}">
732
736
{{ article.title }}
733
737
</a>
734
738
{% endfor %}
735
739
740
+ .. versionadded :: 6.3
741
+
742
+ The option to use named arguments in ``dump() `` was introduced in Symfony 6.3.
743
+
736
744
To avoid leaking sensitive information, the ``dump() `` function/tag is only
737
745
available in the ``dev `` and ``test `` :ref: `configuration environments <configuration-environments >`.
738
746
If 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