File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -258,13 +258,17 @@ service definition to pass a collection of services to the service locator:
258258 -
259259 App\FooCommand : ' @app.command_handler.foo'
260260 App\BarCommand : ' @app.command_handler.bar'
261- # if the element has no key, the ID of the original service is used
262- ' @app.command_handler.baz'
263-
264261 # if you are not using the default service autoconfiguration,
265262 # add the following tag to the service definition:
266263 # tags: ['container.service_locator']
267264
265+ # if the element has no key, the ID of the original service is used
266+ app.another_command_handler_locator :
267+ class : Symfony\Component\DependencyInjection\ServiceLocator
268+ arguments :
269+ -
270+ - ' @app.command_handler.baz'
271+
268272 .. code-block :: xml
269273
270274 <!-- config/services.xml -->
You can’t perform that action at this time.
0 commit comments