Skip to content

Commit dfa2ab3

Browse files
committed
minor #8658 Place annotation before the number method (Tykzz)
This PR was merged into the master branch. Discussion ---------- Place annotation before the number method A routing annotation should correspond to a method, not a controller class Commits ------- 1c398aa Place annotation before the number method
2 parents 771c7f9 + 1c398aa commit dfa2ab3

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)