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.
2 parents f34e77d + 51d98f0 commit a2f22b8Copy full SHA for a2f22b8
service_container/service_subscribers_locators.rst
@@ -346,10 +346,10 @@ argument of type ``service_locator``:
346
347
$services->set(CommandBus::class)
348
->args([service_locator([
349
- 'App\FooCommand' => ref('app.command_handler.foo'),
350
- 'App\BarCommand' => ref('app.command_handler.bar'),
+ 'App\FooCommand' => service('app.command_handler.foo'),
+ 'App\BarCommand' => service('app.command_handler.bar'),
351
// if the element has no key, the ID of the original service is used
352
- ref('app.command_handler.baz'),
+ service('app.command_handler.baz'),
353
])]);
354
};
355
0 commit comments