Skip to content

Commit b6ee00c

Browse files
committed
Added a note about the config formats
1 parent 1996529 commit b6ee00c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

configuration.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ configure your applications. Symfony lets you choose between YAML, XML and PHP
6060
and throughout the Symfony documentation, all configuration examples will be
6161
shown in these three formats.
6262

63-
.. versionadded:: 5.1
64-
65-
Starting from Symfony 5.1, by default Symfony only loads the configuration
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.
69-
7063
There isn't any practical difference between formats. In fact, Symfony
7164
transforms and caches all of them into PHP before running the application, so
7265
there's not even any performance difference between them.
@@ -81,6 +74,13 @@ readable. These are the main advantages and disadvantages of each format:
8174
* **PHP**: very powerful and it allows you to create dynamic configuration with
8275
arrays or a :ref:`ConfigBuilder <config-config-builder>`.
8376

77+
.. note::
78+
79+
By default Symfony only loads the configuration files defined in YAML
80+
format. If you define configuration in XML and/or PHP formats, update the
81+
``src/Kernel.php`` file to add support for the ``.xml`` and ``.php`` file
82+
extensions.
83+
8484
Importing Configuration Files
8585
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8686

0 commit comments

Comments
 (0)