diff --git a/src/Voter/IsDueVoter.php b/src/Voter/IsDueVoter.php index 8e6fb7c..ffbedc1 100644 --- a/src/Voter/IsDueVoter.php +++ b/src/Voter/IsDueVoter.php @@ -4,7 +4,7 @@ namespace Synolia\SyliusSchedulerCommandPlugin\Voter; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; use Synolia\SyliusSchedulerCommandPlugin\Checker\IsDueCheckerInterface; use Synolia\SyliusSchedulerCommandPlugin\Components\Exceptions\Checker\IsNotDueException; use Synolia\SyliusSchedulerCommandPlugin\Entity\CommandInterface; @@ -12,7 +12,7 @@ class IsDueVoter implements IsDueVoterInterface { public function __construct( - #[TaggedIterator(IsDueCheckerInterface::class)] + #[AutowireIterator(IsDueCheckerInterface::class)] private readonly iterable $checkers, ) { }