17
17
use Symfony \Component \DependencyInjection \Argument \ServiceLocatorArgument ;
18
18
use Symfony \Component \DependencyInjection \Argument \TaggedIteratorArgument ;
19
19
use Symfony \Component \DependencyInjection \Attribute \Autowire ;
20
- use Symfony \Component \DependencyInjection \Attribute \MapDecorated ;
20
+ use Symfony \Component \DependencyInjection \Attribute \AutowireDecorated ;
21
21
use Symfony \Component \DependencyInjection \Attribute \TaggedIterator ;
22
22
use Symfony \Component \DependencyInjection \Attribute \TaggedLocator ;
23
23
use Symfony \Component \DependencyInjection \Attribute \Target ;
@@ -426,7 +426,7 @@ public static function getSubscribedServices(): array
426
426
new SubscribedService ('autowired ' , 'stdClass ' , attributes: new Autowire (service: 'service.id ' )),
427
427
new SubscribedService ('autowired.nullable ' , 'stdClass ' , nullable: true , attributes: new Autowire (service: 'service.id ' )),
428
428
new SubscribedService ('autowired.parameter ' , 'string ' , attributes: new Autowire ('%parameter.1% ' )),
429
- new SubscribedService ('map .decorated ' , \stdClass::class, attributes: new MapDecorated ()),
429
+ new SubscribedService ('autowire .decorated ' , \stdClass::class, attributes: new AutowireDecorated ()),
430
430
new SubscribedService ('target ' , \stdClass::class, attributes: new Target ('someTarget ' )),
431
431
];
432
432
}
@@ -449,7 +449,7 @@ public static function getSubscribedServices(): array
449
449
'autowired ' => new ServiceClosureArgument (new TypedReference ('stdClass ' , 'stdClass ' , ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE , 'autowired ' , [new Autowire (service: 'service.id ' )])),
450
450
'autowired.nullable ' => new ServiceClosureArgument (new TypedReference ('stdClass ' , 'stdClass ' , ContainerInterface::IGNORE_ON_INVALID_REFERENCE , 'autowired.nullable ' , [new Autowire (service: 'service.id ' )])),
451
451
'autowired.parameter ' => new ServiceClosureArgument (new TypedReference ('string ' , 'string ' , ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE , 'autowired.parameter ' , [new Autowire (service: '%parameter.1% ' )])),
452
- 'map .decorated ' => new ServiceClosureArgument (new TypedReference ('stdClass ' , 'stdClass ' , ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE , 'map .decorated ' , [new MapDecorated ()])),
452
+ 'autowire .decorated ' => new ServiceClosureArgument (new TypedReference ('stdClass ' , 'stdClass ' , ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE , 'autowire .decorated ' , [new AutowireDecorated ()])),
453
453
'target ' => new ServiceClosureArgument (new TypedReference ('stdClass ' , 'stdClass ' , ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE , 'target ' , [new Target ('someTarget ' )])),
454
454
];
455
455
$ this ->assertEquals ($ expected , $ container ->getDefinition ((string ) $ locator ->getFactory ()[0 ])->getArgument (0 ));
@@ -462,7 +462,7 @@ public static function getSubscribedServices(): array
462
462
'autowired ' => new ServiceClosureArgument (new Reference ('service.id ' )),
463
463
'autowired.nullable ' => new ServiceClosureArgument (new Reference ('service.id ' , ContainerInterface::NULL_ON_INVALID_REFERENCE )),
464
464
'autowired.parameter ' => new ServiceClosureArgument ('foobar ' ),
465
- 'map .decorated ' => new ServiceClosureArgument (new Reference ('.service_locator.EeZIdVM .inner ' , ContainerInterface::NULL_ON_INVALID_REFERENCE )),
465
+ 'autowire .decorated ' => new ServiceClosureArgument (new Reference ('.service_locator.QVDPERh .inner ' , ContainerInterface::NULL_ON_INVALID_REFERENCE )),
466
466
'target ' => new ServiceClosureArgument (new TypedReference ('stdClass ' , 'stdClass ' , ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE , 'someTarget ' , [new Target ('someTarget ' )])),
467
467
];
468
468
$ this ->assertEquals ($ expected , $ container ->getDefinition ((string ) $ locator ->getFactory ()[0 ])->getArgument (0 ));
0 commit comments