diff --git a/service_container/service_subscribers_locators.rst b/service_container/service_subscribers_locators.rst index a0316738d8e..72971213618 100644 --- a/service_container/service_subscribers_locators.rst +++ b/service_container/service_subscribers_locators.rst @@ -256,9 +256,10 @@ argument of type ``service_locator``: # config/services.yaml services: App\CommandBus: - arguments: !service_locator - App\FooCommand: '@app.command_handler.foo' - App\BarCommand: '@app.command_handler.bar' + arguments: + - !service_locator + App\FooCommand: '@app.command_handler.foo' + App\BarCommand: '@app.command_handler.bar' .. code-block:: xml
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: