File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -281,10 +281,10 @@ service definition to pass a collection of services to the service locator:
281
281
282
282
<service id =" app.command_handler_locator" class =" Symfony\Component\DependencyInjection\ServiceLocator" >
283
283
<argument type =" collection" >
284
- <argument key =" App\FooCommand" type =" service" id =" app.command_handler.foo" />
285
- <argument key =" App\BarCommand" type =" service" id =" app.command_handler.bar" />
284
+ <argument key =" App\FooCommand" type =" service" id =" app.command_handler.foo" />
285
+ <argument key =" App\BarCommand" type =" service" id =" app.command_handler.bar" />
286
286
<!-- if the element has no key, the ID of the original service is used -->
287
- <argument type =" service" id =" app.command_handler.baz" />
287
+ <argument type =" service" id =" app.command_handler.baz" />
288
288
</argument >
289
289
<!--
290
290
if you are not using the default service autoconfiguration,
@@ -318,6 +318,7 @@ service definition to pass a collection of services to the service locator:
318
318
;
319
319
320
320
.. versionadded :: 4.1
321
+
321
322
The service locator autoconfiguration was introduced in Symfony 4.1. In
322
323
previous Symfony versions you always needed to add the
323
324
``container.service_locator `` tag explicitly.
You can’t perform that action at this time.
0 commit comments