Skip to content

Commit

Permalink
chore(di): change deprecated TaggedIterator to AutowireIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
maxperei committed Jan 29, 2025
1 parent 48a04b9 commit d3f82f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Voter/IsDueVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

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;

class IsDueVoter implements IsDueVoterInterface
{
public function __construct(
#[TaggedIterator(IsDueCheckerInterface::class)]
#[AutowireIterator(IsDueCheckerInterface::class)]
private readonly iterable $checkers,
) {
}
Expand Down

0 comments on commit d3f82f5

Please sign in to comment.