Skip to content

Commit 1c398aa

Browse files
author
Krzysztof Lament
authored
Place annotation before the number method
An annotation should correspond to a method, not a controller class
1 parent e92386c commit 1c398aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

page_creation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ After this one-time setup, you can now add your route directly *above* the contr
116116
117117
// ...
118118
+ use Symfony\Component\Routing\Annotation\Route;
119-
120-
+ /**
121-
+ * @Route("/lucky/number")
122-
+ */
119+
123120
class LuckyController
124121
{
122+
+ /**
123+
+ * @Route("/lucky/number")
124+
+ */
125125
public function number()
126126
{
127127
// this looks exactly the same

0 commit comments

Comments
 (0)