Skip to content

Commit

Permalink
minor #5191 Fixed inconsistency (jperovic)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #5191).

Discussion
----------

Fixed inconsistency

All examples but "Annotation" use parameter named  "username" whereas it uses parameter "name".

Commits
-------

3c9e738 Fixed inconsistency
  • Loading branch information
wouterj committed Apr 26, 2015
2 parents c2d1f3d + 3c9e738 commit 914345a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/routing/slash_in_parameter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ a more permissive regex path.
class DemoController
{
/**
* @Route("/hello/{name}", name="_hello", requirements={"name"=".+"})
* @Route("/hello/{username}", name="_hello", requirements={"username"=".+"})
*/
public function helloAction($name)
public function helloAction($username)
{
// ...
}
Expand Down

0 comments on commit 914345a

Please sign in to comment.