We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c036d commit 185d4caCopy full SHA for 185d4ca
service_container/service_subscribers_locators.rst
@@ -293,6 +293,7 @@ argument of type ``service_locator``:
293
294
$services->set(CommandBus::class)
295
->args([service_locator([
296
+ // In versions earlier to Symfony 5.1 the service() function was called ref()
297
'App\FooCommand' => service('app.command_handler.foo'),
298
'App\BarCommand' => service('app.command_handler.bar'),
299
// if the element has no key, the ID of the original service is used
0 commit comments