Update bundle to symfony 7
This commit is contained in:
parent
851bf13e65
commit
95adf23306
@ -3,7 +3,8 @@
|
|||||||
namespace Ardent\PipelineBundle\Pipeline\OptionsProcessor;
|
namespace Ardent\PipelineBundle\Pipeline\OptionsProcessor;
|
||||||
|
|
||||||
use Psr\Container\ContainerInterface;
|
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;
|
use Symfony\Component\DependencyInjection\ServiceLocator;
|
||||||
|
|
||||||
class OptionsStageBag implements ContainerInterface
|
class OptionsStageBag implements ContainerInterface
|
||||||
@ -11,7 +12,7 @@ class OptionsStageBag implements ContainerInterface
|
|||||||
private readonly ServiceLocator $locator;
|
private readonly ServiceLocator $locator;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
#[TaggedLocator(OptionsStageInterface::class, indexAttribute: 'name')]
|
#[AutowireLocator(OptionsStageInterface::class, indexAttribute: 'name')]
|
||||||
ServiceLocator $locator
|
ServiceLocator $locator
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -24,7 +25,7 @@ class OptionsStageBag implements ContainerInterface
|
|||||||
* @param class-string<T> $id
|
* @param class-string<T> $id
|
||||||
*
|
*
|
||||||
* @return T
|
* @return T
|
||||||
* @throws \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
|
* @throws ServiceNotFoundException
|
||||||
*/
|
*/
|
||||||
public function get(string $id): OptionsStageInterface
|
public function get(string $id): OptionsStageInterface
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user