diff --git a/src/Pipeline/OptionsProcessor/OptionsStageBag.php b/src/Pipeline/OptionsProcessor/OptionsStageBag.php index f2e1bba..d2e8e5c 100644 --- a/src/Pipeline/OptionsProcessor/OptionsStageBag.php +++ b/src/Pipeline/OptionsProcessor/OptionsStageBag.php @@ -3,7 +3,8 @@ namespace Ardent\PipelineBundle\Pipeline\OptionsProcessor; use Psr\Container\ContainerInterface; -use Symfony\Component\DependencyInjection\Attribute\TaggedLocator; +use Symfony\Component\DependencyInjection\Attribute\AutowireLocator; +use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; use Symfony\Component\DependencyInjection\ServiceLocator; class OptionsStageBag implements ContainerInterface @@ -11,7 +12,7 @@ class OptionsStageBag implements ContainerInterface private readonly ServiceLocator $locator; public function __construct( - #[TaggedLocator(OptionsStageInterface::class, indexAttribute: 'name')] + #[AutowireLocator(OptionsStageInterface::class, indexAttribute: 'name')] ServiceLocator $locator ) { @@ -24,7 +25,7 @@ class OptionsStageBag implements ContainerInterface * @param class-string $id * * @return T - * @throws \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException + * @throws ServiceNotFoundException */ public function get(string $id): OptionsStageInterface {