We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3759fd0 + 064c106 commit 4513d74Copy full SHA for 4513d74
routing.rst
@@ -76,6 +76,11 @@ the ``list()`` method of the ``BlogController`` class.
76
example, URLs like ``/blog?foo=bar`` and ``/blog?foo=bar&bar=foo`` will
77
also match the ``blog_list`` route.
78
79
+.. caution::
80
+
81
+ If you define multiple PHP classes in the same file, Symfony only loads the
82
+ routes of the first class, ignoring all the other routes.
83
84
The route name (``blog_list``) is not important for now, but it will be
85
essential later when :ref:`generating URLs <routing-generating-urls>`. You only
86
have to keep in mind that each route name must be unique in the application.
0 commit comments