Skip to content

Commit c808742

Browse files
authored
Added namespace for example
1 parent d7eedd0 commit c808742

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ Consider the following routing configuration:
188188
.. code-block:: php-annotations
189189
190190
// src/Controller/BlogController.php
191+
namespace App\Controller;
191192
192193
// ...
193194
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
421422
the :class:`Twig\\Environment` class::
422423

423424
// src/Service/SomeService.php
425+
namespace App\Service;
426+
424427
use Twig\Environment;
425428

426429
class SomeService

0 commit comments

Comments
 (0)