@@ -417,13 +417,6 @@ other services. To do so, create a new service definition using the
417
417
# add the following tag to the service definition:
418
418
# tags: ['container.service_locator']
419
419
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
-
427
420
.. code-block :: xml
428
421
429
422
<!-- config/services.xml -->
@@ -438,8 +431,6 @@ other services. To do so, create a new service definition using the
438
431
<argument type =" collection" >
439
432
<argument key =" App\FooCommand" type =" service" id =" app.command_handler.foo" />
440
433
<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" />
443
434
</argument >
444
435
<!--
445
436
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
470
461
// add the following tag to the service definition:
471
462
// ->tag('container.service_locator')
472
463
;
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
- ;
480
464
};
481
465
482
466
.. note ::
0 commit comments