Skip to content

Commit 34fb70b

Browse files
committed
minor #12488 Added namespace for example (TheGarious)
This PR was merged into the 4.3 branch. Discussion ---------- Added namespace for example <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- c808742 Added namespace for example
2 parents 29f5aae + c808742 commit 34fb70b

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)