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 7d667bc

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

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎service_container.rst

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