Update bundle to symfony 7

This commit is contained in:
Tim 2024-07-23 21:44:34 +02:00
parent 851bf13e65
commit 95adf23306

View File

@ -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<T> $id
*
* @return T
* @throws \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
* @throws ServiceNotFoundException
*/
public function get(string $id): OptionsStageInterface
{