From 811b1594b60e9ad061130a4eaf5da05e26258054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michae=CC=88l=20Perrin?= Date: Fri, 1 Dec 2017 14:56:22 +0100 Subject: [PATCH] Fix diff syntax formatting --- page_creation.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/page_creation.rst b/page_creation.rst index 34251dad928..c55c536b37e 100644 --- a/page_creation.rst +++ b/page_creation.rst @@ -109,12 +109,12 @@ You can now add your route directly *above* the controller: // ... + use Symfony\Component\Routing\Annotation\Route; - + class LuckyController { - + /** - + * @Route("/lucky/number") - + */ + + /** + + * @Route("/lucky/number") + + */ public function number() { // this looks exactly the same @@ -248,7 +248,7 @@ variable so you can use it in Twig:: } Template files live in the ``templates/`` directory, which was created for you automatically -when you installed Twig. Create a new ``templates/lucky`` directory with a new +when you installed Twig. Create a new ``templates/lucky`` directory with a new ``number.html.twig`` file inside: .. code-block:: twig