Skip to content

Commit c60228f

Browse files
committed
minor symfony#15530 [Config] [Configuration] Added a note about XML and PHP formats (javiereguiluz)
This PR was squashed before being merged into the 5.2 branch. Discussion ---------- [Config] [Configuration] Added a note about XML and PHP formats Fixes symfony#14793. Commits ------- 7fd5bde [Config] [Configuration] Added a note about XML and PHP formats
2 parents 7db86c9 + 7fd5bde commit c60228f

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)