From c808742a20899ded03ed7a817a6f76123e4704bf Mon Sep 17 00:00:00 2001 From: Gary Houbre Date: Tue, 15 Oct 2019 22:50:20 +0200 Subject: [PATCH] Added namespace for example --- templates.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates.rst b/templates.rst index 73ae5887335..67cde29d451 100644 --- a/templates.rst +++ b/templates.rst @@ -188,6 +188,7 @@ Consider the following routing configuration: .. code-block:: php-annotations // src/Controller/BlogController.php + namespace App\Controller; // ... use Symfony\Component\Routing\Annotation\Route; @@ -421,6 +422,8 @@ you only need to add an argument in the service constructor and type-hint it wit the :class:`Twig\\Environment` class:: // src/Service/SomeService.php + namespace App\Service; + use Twig\Environment; class SomeService