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 34fb70b

Browse filesBrowse 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
Copy full SHA for 34fb70b

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.