File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,14 @@ current PHP SAPI:
82
82
#. From time to time, run ``composer global update symfony/var-dumper ``
83
83
to have the latest bug fixes.
84
84
85
+ .. tip ::
86
+
87
+ The VarDumper component also has a ``dd() `` helper method. This dump and die
88
+ functionality will call ``dump() `` and ``exit() ``.
89
+
90
+ .. versionadded :: 4.1
91
+ The ``dd() `` helper method was introduced in Symfony 4.1.
92
+
85
93
DebugBundle and Twig Integration
86
94
--------------------------------
87
95
@@ -93,8 +101,9 @@ of your application may just break it by e.g. sending HTTP headers or
93
101
corrupting your view, the bundle configures the ``dump() `` function so that
94
102
variables are dumped in the web debug toolbar.
95
103
96
- But if the toolbar cannot be displayed because you e.g. called ``die ``/``exit ``
97
- or a fatal error occurred, then dumps are written on the regular output.
104
+ But if the toolbar cannot be displayed because you e.g. called
105
+ ``die ``/``exit ``/``dd `` or a fatal error occurred, then dumps are written on
106
+ the regular output.
98
107
99
108
In a Twig template, two constructs are available for dumping a variable.
100
109
Choosing between both is mostly a matter of personal taste, still:
You can’t perform that action at this time.
0 commit comments