Skip to content

Commit

Permalink
Replace deprecated TaggedIterator with new AutowireIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBehrens authored Nov 10, 2024
1 parent 4d3d6a8 commit 78c5941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controller/HealthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
) {}

Expand Down

0 comments on commit 78c5941

Please sign in to comment.