From 78c594133de66a265bd2c286a266d3bd4a91e432 Mon Sep 17 00:00:00 2001 From: Joshua Behrens Date: Sun, 10 Nov 2024 13:29:30 +0100 Subject: [PATCH] Replace deprecated TaggedIterator with new AutowireIterator --- src/Controller/HealthController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/HealthController.php b/src/Controller/HealthController.php index efa1bc9..61590da 100644 --- a/src/Controller/HealthController.php +++ b/src/Controller/HealthController.php @@ -8,7 +8,7 @@ use Frosh\Tools\Components\Health\HealthCollection; use Frosh\Tools\Components\Health\PerformanceCollection; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\Routing\Attribute\Route; @@ -20,9 +20,9 @@ class HealthController extends AbstractController * @param CheckerInterface[] $performanceCheckers */ public function __construct( - #[TaggedIterator('frosh_tools.health_checker')] + #[AutowireIterator('frosh_tools.health_checker')] private readonly iterable $healthCheckers, - #[TaggedIterator('frosh_tools.performance_checker')] + #[AutowireIterator('frosh_tools.performance_checker')] private readonly iterable $performanceCheckers, ) {}