Skip to content

Commit 1462b8a

Browse files
committed
minor #5678 Update HttpFoundation note after recent changes in routing component (senkal)
This PR was squashed before being merged into the 2.3 branch (closes #5678). Discussion ---------- Update HttpFoundation note after recent changes in routing component | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | Update HttpFoundation note to reflect changes in #5652. We do not longer use `$_SERVER['REQUEST_URI']` in examples so keeping the reference in note doesn't have much value. I updated it to make it more generic and reflect current examples. Commits ------- 36234f2 Update HttpFoundation note after recent changes in routing component
2 parents 504a8f9 + 36234f2 commit 1462b8a

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)