Skip to content

Commit 1d94d47

Browse files
[DependencyInjection] Return hint
Remove uses & Route attribute
1 parent d674fa6 commit 1d94d47

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

service_container.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,10 @@ you can type-hint the new ``SiteUpdateManager`` class and use it::
370370
namespace App\Controller;
371371

372372
use App\Service\SiteUpdateManager;
373-
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
374-
use Symfony\Component\HttpFoundation\Response;
375-
use Symfony\Component\Routing\Annotation\Route;
373+
// ...
376374

377375
class SiteController extends AbstractController
378376
{
379-
#[Route('/site/new')]
380377
public function new(SiteUpdateManager $siteUpdateManager): Response
381378
{
382379
// ...

0 commit comments

Comments
 (0)