Skip to content

Commit 7d667bc

Browse files
committed
minor #16596 Update service_container.rst (ahmedbrs)
This PR was merged into the 5.4 branch. Discussion ---------- Update service_container.rst Hi ! If I'm not mistaking, we should extend the AbstractController to add a service in a controller. <!-- 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 `6.x` for features of unreleased versions). --> Commits ------- eb2ce88 Update service_container.rst
2 parents 07d3cfc + eb2ce88 commit 7d667bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service_container.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ service's class or interface name. Want to :doc:`log </logging>` something? No p
3232
namespace App\Controller;
3333

3434
use Psr\Log\LoggerInterface;
35+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
3536
use Symfony\Component\HttpFoundation\Response;
3637
use Symfony\Component\Routing\Annotation\Route;
3738

38-
class ProductController
39+
class ProductController extends AbstractController
3940
{
4041
/**
4142
* @Route("/products")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy