Pārlūkot izejas kodu

Ménage use inutiles

Sangfroid 1 gadu atpakaļ
vecāks
revīzija
e1c695fd4f
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      src/Controller/AdminController.php

+ 1 - 2
src/Controller/AdminController.php

@@ -5,7 +5,6 @@ namespace App\Controller;
 use App\Entity\Counter;
 use App\Form\CounterType;
 use App\Repository\CounterRepository;
-use App\Service\CounterManager;
 use Doctrine\ORM\EntityManagerInterface;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 use Symfony\Component\HttpFoundation\RedirectResponse;
@@ -33,7 +32,7 @@ class AdminController extends AbstractController
     }
 
     #[Route('/new', name: 'app_admin_new', methods: ['GET', 'POST'])]
-    public function new(Request $request, CounterManager $counterManager): Response
+    public function new(Request $request): Response
     {
         $counter = new Counter();
         $form = $this->createForm(CounterType::class, $counter);