Skip to content

[Config] Improve adding support for XML format #18601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ readable. These are the main advantages and disadvantages of each format:

By default Symfony loads the configuration files defined in YAML and PHP
formats. If you define configuration in XML format, update the
``src/Kernel.php`` file to add support for the ``.xml`` file extension.
:method:`Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait::configureContainer`
and/or
:method:`Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait::configureRoutes`
methods in the ``src/Kernel.php`` file to add support for the ``.xml`` file
extension.

.. versionadded:: 6.1

Expand Down Expand Up @@ -855,7 +859,7 @@ In PHP >= 8, you can remove the two arguments when autoconfiguration is enabled
# config/services.yaml
services:
Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~

Then, run the command:

.. code-block:: terminal
Expand Down