Skip to content

Commit 083dbe8

Browse files
committed
Tweaks
1 parent 1635e1f commit 083dbe8

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

performance.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,14 @@ deployment process too):
220220
Disable Dumping the Container as XML in Debug Mode
221221
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
222222

223-
In debug mode, Symfony compiles the :doc:`service container </service_container>`
224-
into an XML file. This XML file is used by various commands such as
225-
``debug:container`` and ``debug:autowiring``. When the container grows larger and larger,
226-
so does the size of the file and the time to generate it. Sometimes the benefit of this
227-
file does not outweigh the decrease in performance.
223+
In :ref:`debug mode <debug-mode>`, Symfony generates an XML file with all the
224+
:doc:`service container </service_container>` information (services, arguments, etc.)
225+
This XML file is used by various debugging commands such as ``debug:container``
226+
and ``debug:autowiring``.
228227

229-
In these situations, you can disable dumping of the XML file by setting `debug.container.dump` to `false`:
228+
When the container grows larger and larger, so does the size of the file and the
229+
time to generate it. If the benefit of this XML file does not outweigh the decrease
230+
in performance, you can stop generating the file as follows:
230231

231232
.. configuration-block::
232233

@@ -258,6 +259,10 @@ In these situations, you can disable dumping of the XML file by setting `debug.c
258259
// ...
259260
$container->parameters()->set('debug.container.dump', false);
260261
262+
.. versionadded:: 6.3
263+
264+
The ``debug.container.dump`` option was introduced in Symfony 6.3.
265+
261266
.. _profiling-applications:
262267

263268
Profiling Symfony Applications

0 commit comments

Comments
 (0)