Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8af100d

Browse files
committed
Mention that Symfony only loads YAML routes by default
1 parent 2f99b01 commit 8af100d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ the ``BlogController``:
147147
;
148148
};
149149
150+
.. versionadded:: 5.1
151+
152+
Starting from Symfony 5.1, by default Symfony only loads the routes defined
153+
in YAML format. If you define routes in XML and/or PHP formats, update the
154+
``src/Kernel.php`` file to add support for the ``.xml`` and ``.php`` file extensions.
155+
150156
.. _routing-matching-http-methods:
151157

152158
Matching HTTP Methods

0 commit comments

Comments
 (0)