Skip to content

Commit f77cefd

Browse files
committed
minor #15769 [DependencyInjection] add missing use statements (dunglas)
This PR was merged into the 4.4 branch. Discussion ---------- [DependencyInjection] add missing use statements <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases 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 `5.x` for features of unreleased versions). --> Commits ------- c381307 [DependencyInjection] add missing use statements
2 parents 908f3d5 + c381307 commit f77cefd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service_container.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ service's class or interface name. Want to :doc:`log </logging>` something? No p
3333

3434
use Psr\Log\LoggerInterface;
3535
use Symfony\Component\HttpFoundation\Response;
36+
use Symfony\Component\Routing\Annotation\Route;
3637

3738
class ProductController
3839
{
@@ -122,6 +123,7 @@ inside your controller::
122123
// src/Controller/ProductController.php
123124
use App\Service\MessageGenerator;
124125
use Symfony\Component\HttpFoundation\Response;
126+
use Symfony\Component\Routing\Annotation\Route;
125127

126128
/**
127129
* @Route("/products/new")

0 commit comments

Comments
 (0)