Skip to content

Commit 7fd5bde

Browse files
committed
[Config] [Configuration] Added a note about XML and PHP formats
1 parent 62f10cd commit 7fd5bde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configuration.rst

+7
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ 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+
6370
There isn't any practical difference between formats. In fact, Symfony
6471
transforms and caches all of them into PHP before running the application, so
6572
there's not even any performance difference between them.

0 commit comments

Comments
 (0)