Update bundle to symfony 7
This commit is contained in:
parent
851bf13e65
commit
95adf23306
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user