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 d0d2f7f commit f0048efCopy full SHA for f0048ef
service_container/service_subscribers_locators.rst
@@ -293,10 +293,10 @@ argument of type ``service_locator``:
293
294
$services->set(CommandBus::class)
295
->args([service_locator([
296
- 'App\FooCommand' => ref('app.command_handler.foo'),
297
- 'App\BarCommand' => ref('app.command_handler.bar'),
+ 'App\FooCommand' => service('app.command_handler.foo'),
+ 'App\BarCommand' => service('app.command_handler.bar'),
298
// if the element has no key, the ID of the original service is used
299
- ref('app.command_handler.baz'),
+ service('app.command_handler.baz'),
300
])]);
301
};
302
0 commit comments