From d7334f141bd172484c1255619d477a3cfbd636d8 Mon Sep 17 00:00:00 2001 From: Benjamin Kott Date: Thu, 28 Nov 2024 11:16:52 +0100 Subject: [PATCH] [TASK] Prefer use statements in AbstractController --- src/Controller/Api/AbstractController.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Controller/Api/AbstractController.php b/src/Controller/Api/AbstractController.php index 717f7667..fbbe0dad 100644 --- a/src/Controller/Api/AbstractController.php +++ b/src/Controller/Api/AbstractController.php @@ -37,19 +37,20 @@ use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Validator\ConstraintViolationInterface; +use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Contracts\Cache\TagAwareCacheInterface; abstract class AbstractController extends \Symfony\Bundle\FrameworkBundle\Controller\AbstractController { public function __construct( - private \Symfony\Contracts\Cache\TagAwareCacheInterface $cache, - private \App\Service\CacheService $cacheService, - private \JMS\Serializer\SerializerInterface $serializer, - private \Doctrine\Persistence\ManagerRegistry $managerRegistry, - private \App\Repository\MajorVersionRepository $majorVersions, - private \App\Repository\RequirementRepository $requirements, - private \App\Repository\ReleaseRepository $releases, - private \Symfony\Component\Validator\Validator\ValidatorInterface $validator, + private TagAwareCacheInterface $cache, + private CacheService $cacheService, + private SerializerInterface $serializer, + private ManagerRegistry $managerRegistry, + private MajorVersionRepository $majorVersions, + private RequirementRepository $requirements, + private ReleaseRepository $releases, + private ValidatorInterface $validator, ) {} protected function getCache(): TagAwareCacheInterface