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:
258
258
-
259
259
App\FooCommand : ' @app.command_handler.foo'
260
260
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
-
264
261
# if you are not using the default service autoconfiguration,
265
262
# add the following tag to the service definition:
266
263
# tags: ['container.service_locator']
267
264
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
+
268
272
.. code-block :: xml
269
273
270
274
<!-- config/services.xml -->
You can’t perform that action at this time.
0 commit comments