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

Skip to content

Commit 44b8d03

Browse files
committed
minor #14721 [Routing] Mention that Symfony only loads YAML routes by default (javiereguiluz)
This PR was merged into the 5.1 branch. Discussion ---------- [Routing] Mention that Symfony only loads YAML routes by default Fixes #13748. Commits ------- 8af100d Mention that Symfony only loads YAML routes by default
2 parents 2f84801 + 8af100d commit 44b8d03

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)