Skip to content

Commit 3c9e738

Browse files
jperovicwouterj
authored andcommitted
Fixed inconsistency
All examples but "Annotation" use parameter named "username" whereas it uses parameter "name".
1 parent c2d1f3d commit 3c9e738

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)