From 1c398aab0bcf3fb989e6fc4ab2205ffd1b3616f0 Mon Sep 17 00:00:00 2001 From: Krzysztof Lament Date: Tue, 14 Nov 2017 21:09:05 +0100 Subject: [PATCH] Place annotation before the number method An annotation should correspond to a method, not a controller class --- page_creation.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/page_creation.rst b/page_creation.rst index 4670b2b8f6d..b2e219c3b1c 100644 --- a/page_creation.rst +++ b/page_creation.rst @@ -116,12 +116,12 @@ After this one-time setup, you can now add your route directly *above* the contr // ... + use Symfony\Component\Routing\Annotation\Route; - - + /** - + * @Route("/lucky/number") - + */ + class LuckyController { + + /** + + * @Route("/lucky/number") + + */ public function number() { // this looks exactly the same