From 7fd5bde0075ae588d23a8840e5573fa4f05458ab Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 16 Jul 2021 12:39:48 +0200 Subject: [PATCH] [Config] [Configuration] Added a note about XML and PHP formats --- configuration.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.rst b/configuration.rst index 1b028499eb1..be5c16c8728 100644 --- a/configuration.rst +++ b/configuration.rst @@ -60,6 +60,13 @@ configure your applications. Symfony lets you choose between YAML, XML and PHP and throughout the Symfony documentation, all configuration examples will be shown in these three formats. +.. versionadded:: 5.1 + + Starting from Symfony 5.1, by default Symfony only loads the configuration + files defined in YAML format. If you define configuration in XML and/or PHP + formats, update the ``src/Kernel.php`` file to add support for the ``.xml`` + and ``.php`` file extensions. + There isn't any practical difference between formats. In fact, Symfony transforms and caches all of them into PHP before running the application, so there's not even any performance difference between them.