Skip to content

Commit c381307

Browse files
authored
[DependencyInjection] add missing use statements
1 parent 908f3d5 commit c381307

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)