From 6b0f53c8579e686f35eba810cd4281bc39da07d8 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Mon, 14 Nov 2016 08:34:49 +0100 Subject: [PATCH 1/2] Add a warning about routes parameters names limitations --- routing.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routing.rst b/routing.rst index da1f3026937..55434a3ccdc 100644 --- a/routing.rst +++ b/routing.rst @@ -466,6 +466,10 @@ a slash. URLs matching this route might look like: Symfony provides you with a way to do this by leveraging service container parameters. Read more about this in ":doc:`/routing/service_container_parameters`". +.. caution:: + + A route parameter name cannot start with a digit and cannot be longer than 32 characters. + Special Routing Parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~ From cadef6071c4daf3cdc383d2f46116d9ad886aec0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 14 Nov 2016 09:02:41 +0100 Subject: [PATCH 2/2] Use "route placeholder" instead of "route parameter" --- routing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing.rst b/routing.rst index 55434a3ccdc..1ef7be06490 100644 --- a/routing.rst +++ b/routing.rst @@ -468,7 +468,7 @@ a slash. URLs matching this route might look like: .. caution:: - A route parameter name cannot start with a digit and cannot be longer than 32 characters. + A route placeholder name cannot start with a digit and cannot be longer than 32 characters. Special Routing Parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~