Skip to content

Commit 185d4ca

Browse files
committed
Minor tweak
1 parent 46c036d commit 185d4ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ argument of type ``service_locator``:
293293
294294
$services->set(CommandBus::class)
295295
->args([service_locator([
296+
// In versions earlier to Symfony 5.1 the service() function was called ref()
296297
'App\FooCommand' => service('app.command_handler.foo'),
297298
'App\BarCommand' => service('app.command_handler.bar'),
298299
// if the element has no key, the ID of the original service is used

0 commit comments

Comments
 (0)