File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,21 @@ a more permissive regex path.
24
24
25
25
.. configuration-block ::
26
26
27
+ .. code-block :: php-annotations
28
+
29
+ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
30
+
31
+ class DemoController
32
+ {
33
+ /**
34
+ * @Route("/hello/{name}", name="_hello", requirements={"name"=".+"})
35
+ */
36
+ public function helloAction($name)
37
+ {
38
+ // ...
39
+ }
40
+ }
41
+
27
42
.. code-block :: yaml
28
43
29
44
_hello :
@@ -60,19 +75,4 @@ a more permissive regex path.
60
75
61
76
return $collection;
62
77
63
- .. code-block :: php-annotations
64
-
65
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
66
-
67
- class DemoController
68
- {
69
- /**
70
- * @Route("/hello/{name}", name="_hello", requirements={"name" = ".+"})
71
- */
72
- public function helloAction($name)
73
- {
74
- // ...
75
- }
76
- }
77
-
78
78
That's it! Now, the ``{username} `` parameter can contain the ``/ `` character.
You can’t perform that action at this time.
0 commit comments