Skip to content

Commit 914345a

Browse files
committed
minor symfony#5191 Fixed inconsistency (jperovic)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes symfony#5191). Discussion ---------- Fixed inconsistency All examples but "Annotation" use parameter named "username" whereas it uses parameter "name". Commits ------- 3c9e738 Fixed inconsistency
2 parents c2d1f3d + 3c9e738 commit 914345a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/routing/slash_in_parameter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ a more permissive regex path.
3131
class DemoController
3232
{
3333
/**
34-
* @Route("/hello/{name}", name="_hello", requirements={"name"=".+"})
34+
* @Route("/hello/{username}", name="_hello", requirements={"username"=".+"})
3535
*/
36-
public function helloAction($name)
36+
public function helloAction($username)
3737
{
3838
// ...
3939
}

0 commit comments

Comments
 (0)