@@ -417,13 +417,6 @@ other services. To do so, create a new service definition using the
417417 # add the following tag to the service definition:
418418 # tags: ['container.service_locator']
419419
420- # if the element has no key, the ID of the original service is used
421- app.another_command_handler_locator :
422- class : Symfony\Component\DependencyInjection\ServiceLocator
423- arguments :
424- -
425- - ' @app.command_handler.baz'
426-
427420 .. code-block :: xml
428421
429422 <!-- config/services.xml -->
@@ -438,8 +431,6 @@ other services. To do so, create a new service definition using the
438431 <argument type =" collection" >
439432 <argument key =" App\FooCommand" type =" service" id =" app.command_handler.foo" />
440433 <argument key =" App\BarCommand" type =" service" id =" app.command_handler.bar" />
441- <!-- if the element has no key, the ID of the original service is used -->
442- <argument type =" service" id =" app.command_handler.baz" />
443434 </argument >
444435 <!--
445436 if you are not using the default service autoconfiguration,
@@ -470,13 +461,6 @@ other services. To do so, create a new service definition using the
470461 // add the following tag to the service definition:
471462 // ->tag('container.service_locator')
472463 ;
473-
474- // if the element has no key, the ID of the original service is used
475- $services->set('app.another_command_handler_locator', ServiceLocator::class)
476- ->args([[
477- service('app.command_handler.baz'),
478- ]])
479- ;
480464 };
481465
482466 .. note ::
0 commit comments