Skip to content

Commit 9d1de6d

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: [Twig] Update the docs of the twig.debug option
2 parents 013f3cc + ea6dc7b commit 9d1de6d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

reference/configuration/twig.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ debug
160160
If ``true``, the compiled templates include a ``__toString()`` method that can
161161
be used to display their nodes.
162162

163+
This option also controls the behavior of :ref:`the Twig dump utilities <twig-dump-utilities>`.
164+
If this option is ``false``, the ``dump()`` function doesn't output any contents.
165+
163166
.. _config-twig-default-path:
164167

165168
default_path

templates.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,8 @@ and also to check the Twig features added when :ref:`installing packages <symfon
818818
# pass a template path to show the physical file which will be loaded
819819
$ php bin/console debug:twig @Twig/Exception/error.html.twig
820820
821+
.. _twig-dump-utilities:
822+
821823
The Dump Twig Utilities
822824
~~~~~~~~~~~~~~~~~~~~~~~
823825

0 commit comments

Comments
 (0)