Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c808742

Browse filesBrowse files
authored
Added namespace for example
1 parent d7eedd0 commit c808742
Copy full SHA for c808742

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎templates.rst

Copy file name to clipboardExpand all lines: templates.rst
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.