Skip to content

Commit

Permalink
Issue #86: Use AutowireIterator instead of TaggedIterator.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Nov 2, 2024
1 parent b8ec603 commit f4e0fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/Registry/PluginRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Ock\ClassDiscovery\FactsIA\FactsIA;
use Ock\DependencyInjection\Attribute\Service;
use Ock\Ock\OckPackage;
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;
use Symfony\Component\DependencyInjection\Attribute\AutowireIterator;

/**
* Class with only static factories.
Expand All @@ -21,7 +21,7 @@ class PluginRegistry {
*/
#[Service]
public static function fromCandidateObjects(
#[TaggedIterator(OckPackage::DISCOVERY_TAG_NAME)]
#[AutowireIterator(OckPackage::DISCOVERY_TAG_NAME)]
iterable $objects,
): PluginRegistryInterface {
$factsIA = FactsIA::fromCandidateObjects($objects);
Expand Down

0 comments on commit f4e0fd6

Please sign in to comment.