Skip to content

Commit 5f1554f

Browse files
committed
Merge remote-tracking branch 'upstream/4.3' into 4.3
* upstream/4.3: fix build
2 parents 6a5b2a7 + c453fed commit 5f1554f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ service definition to pass a collection of services to the service locator:
281281
282282
<service id="app.command_handler_locator" class="Symfony\Component\DependencyInjection\ServiceLocator">
283283
<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"/>
286286
<!-- 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"/>
288288
</argument>
289289
<!--
290290
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:
318318
;
319319
320320
.. versionadded:: 4.1
321+
321322
The service locator autoconfiguration was introduced in Symfony 4.1. In
322323
previous Symfony versions you always needed to add the
323324
``container.service_locator`` tag explicitly.

0 commit comments

Comments
 (0)