From 95adf233065fa3634bd50fb44e5ef9dfc25155ac Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 23 Jul 2024 21:44:34 +0200 Subject: [PATCH] Update bundle to symfony 7 --- src/Pipeline/OptionsProcessor/OptionsStageBag.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 {