From bcc01a28a07235bc67a8e5006e29b10148cad169 Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Wed, 22 May 2024 19:30:10 +0200 Subject: [PATCH] Fix deprecation (see https://github.com/symfony/symfony/commit/4bc6bedfdb21f8de6cfcfd9860aa10490a321b95) --- src/HealthCheck/HealthCheckChain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HealthCheck/HealthCheckChain.php b/src/HealthCheck/HealthCheckChain.php index 9d8a377..698d697 100644 --- a/src/HealthCheck/HealthCheckChain.php +++ b/src/HealthCheck/HealthCheckChain.php @@ -19,7 +19,7 @@ namespace OpenConext\MonitorBundle\HealthCheck; use OpenConext\MonitorBundle\Value\HealthReport; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; /** * Collect HealthCheck instances and checks them for UP or DOWN status. @@ -27,7 +27,7 @@ class HealthCheckChain { public function __construct( - #[TaggedIterator(HealthCheckInterface::class)] + #[AutowireIterator(HealthCheckInterface::class)] private readonly iterable $healthChecks ) { }