Skip to content

Commit 8bb38e9

Browse files
Replace deprecated TaggedIterator with new AutowireIterator (#288)
1 parent 98cee60 commit 8bb38e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Controller/HealthController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Frosh\Tools\Components\Health\HealthCollection;
99
use Frosh\Tools\Components\Health\PerformanceCollection;
1010
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
11-
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;
11+
use Symfony\Component\DependencyInjection\Attribute\AutowireIterator;
1212
use Symfony\Component\HttpFoundation\JsonResponse;
1313
use Symfony\Component\Routing\Attribute\Route;
1414

@@ -20,9 +20,9 @@ class HealthController extends AbstractController
2020
* @param CheckerInterface[] $performanceCheckers
2121
*/
2222
public function __construct(
23-
#[TaggedIterator('frosh_tools.health_checker')]
23+
#[AutowireIterator('frosh_tools.health_checker')]
2424
private readonly iterable $healthCheckers,
25-
#[TaggedIterator('frosh_tools.performance_checker')]
25+
#[AutowireIterator('frosh_tools.performance_checker')]
2626
private readonly iterable $performanceCheckers,
2727
) {}
2828

0 commit comments

Comments
 (0)