From 93f22a4ec14a2dc44053e0e8089408b8d5b3d050 Mon Sep 17 00:00:00 2001 From: Marcin Sekalski Date: Tue, 8 Sep 2015 20:06:25 +0100 Subject: [PATCH 1/2] Update HttpFoundation note to reflect recent changes- remove $_SERVER[REQUEST_URI] from examples --- components/routing/introduction.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/routing/introduction.rst b/components/routing/introduction.rst index cd2477548c7..9257dd8bad9 100644 --- a/components/routing/introduction.rst +++ b/components/routing/introduction.rst @@ -48,9 +48,8 @@ your autoloader to load the Routing component:: .. note:: - Be careful when using ``$_SERVER['REQUEST_URI']``, as it may include - any query parameters on the URL, which will cause problems with route - matching. An easy way to solve this is to use the HttpFoundation component + Althought to populate parameters for :class: Symfony\\Component\\Routing\\RequestContext + you can use variables from ``$_SERVER``, easier way is to use HttpFoundation component as explained :ref:`below `. You can add as many routes as you like to a From e78e017ce88d1f0c2640b41ab060a18959746cf7 Mon Sep 17 00:00:00 2001 From: Marcin Sekalski Date: Sat, 12 Sep 2015 00:35:18 +0100 Subject: [PATCH 2/2] Update HttpFoundation note --- components/routing/introduction.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/routing/introduction.rst b/components/routing/introduction.rst index 9257dd8bad9..d901daa9558 100644 --- a/components/routing/introduction.rst +++ b/components/routing/introduction.rst @@ -48,9 +48,9 @@ your autoloader to load the Routing component:: .. note:: - Althought to populate parameters for :class: Symfony\\Component\\Routing\\RequestContext - you can use variables from ``$_SERVER``, easier way is to use HttpFoundation component - as explained :ref:`below `. + The :class:`Symfony\\Component\\Routing\\RequestContext` parameters can be populated + with the values stored in ``$_SERVER``, but it's easier to use the HttpFoundation + component as explained :ref:`below `. You can add as many routes as you like to a :class:`Symfony\\Component\\Routing\\RouteCollection`.