Skip to content

Commit 36234f2

Browse files
Marcin Sekalskixabbuh
Marcin Sekalski
authored andcommitted
Update HttpFoundation note after recent changes in routing component
1 parent 404ed93 commit 36234f2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/routing/introduction.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ your autoloader to load the Routing component::
4848

4949
.. note::
5050

51-
Be careful when using ``$_SERVER['REQUEST_URI']``, as it may include
52-
any query parameters on the URL, which will cause problems with route
53-
matching. An easy way to solve this is to use the HttpFoundation component
54-
as explained :ref:`below <components-routing-http-foundation>`.
51+
The :class:`Symfony\\Component\\Routing\\RequestContext` parameters can be populated
52+
with the values stored in ``$_SERVER``, but it's easier to use the HttpFoundation
53+
component as explained :ref:`below <components-routing-http-foundation>`.
5554

5655
You can add as many routes as you like to a
5756
:class:`Symfony\\Component\\Routing\\RouteCollection`.

0 commit comments

Comments
 (0)