@@ -220,13 +220,14 @@ deployment process too):
220
220
Disable Dumping the Container as XML in Debug Mode
221
221
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
222
222
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 ``.
228
227
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:
230
231
231
232
.. configuration-block ::
232
233
@@ -258,6 +259,10 @@ In these situations, you can disable dumping of the XML file by setting `debug.c
258
259
// ...
259
260
$container->parameters()->set('debug.container.dump', false);
260
261
262
+ .. versionadded :: 6.3
263
+
264
+ The ``debug.container.dump `` option was introduced in Symfony 6.3.
265
+
261
266
.. _profiling-applications :
262
267
263
268
Profiling Symfony Applications
0 commit comments