@@ -60,13 +60,11 @@ configure your applications. Symfony lets you choose between YAML, XML and PHP
60
60
and throughout the Symfony documentation, all configuration examples will be
61
61
shown in these three formats.
62
62
63
- .. versionadded :: 5.1
63
+ .. note ::
64
64
65
- Starting from Symfony 5.1, by default Symfony only loads the configuration
65
+ By default, Symfony only loads the configuration
66
66
files defined in YAML format. If you define configuration in XML and/or PHP
67
- formats, update the ``src/Kernel.php `` file to add support for the ``.xml ``
68
- and ``.php `` file extensions by overriding the
69
- :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::configureContainer ` method::
67
+ formats, update the ``src/Kernel.php `` file::
70
68
71
69
// src/Kernel.php
72
70
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
@@ -93,8 +91,8 @@ shown in these three formats.
93
91
}
94
92
95
93
There isn't any practical difference between formats. In fact, Symfony
96
- transforms and caches all of them into PHP before running the application, so
97
- there's not even any performance difference between them .
94
+ transforms all of them into PHP and caches them before running the application, so
95
+ there's not even any performance difference.
98
96
99
97
YAML is used by default when installing packages because it's concise and very
100
98
readable. These are the main advantages and disadvantages of each format:
0 commit comments