From 9c93cf77e06ff6ac6e06c311d831c89bd056f56f Mon Sep 17 00:00:00 2001 From: Jovan Perovic Date: Sun, 19 Apr 2015 13:26:52 +0200 Subject: [PATCH] Fixed inconsistency All examples but "Annotation" use parameter named "username" whereas it uses parameter "name". --- cookbook/routing/slash_in_parameter.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/routing/slash_in_parameter.rst b/cookbook/routing/slash_in_parameter.rst index 6da1fbc61ee..9a2801705cd 100644 --- a/cookbook/routing/slash_in_parameter.rst +++ b/cookbook/routing/slash_in_parameter.rst @@ -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) { // ... }