From f0048ef4bbef632a6677d8cd65933ad42e2239a0 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Tue, 27 Sep 2022 15:43:33 +0200 Subject: [PATCH] Fix docs referencing an incorrect PHP function --- service_container/service_subscribers_locators.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service_container/service_subscribers_locators.rst b/service_container/service_subscribers_locators.rst index f947dd9ba87..7612333f6b3 100644 --- a/service_container/service_subscribers_locators.rst +++ b/service_container/service_subscribers_locators.rst @@ -293,10 +293,10 @@ argument of type ``service_locator``: $services->set(CommandBus::class) ->args([service_locator([ - 'App\FooCommand' => ref('app.command_handler.foo'), - 'App\BarCommand' => ref('app.command_handler.bar'), + 'App\FooCommand' => service('app.command_handler.foo'), + 'App\BarCommand' => service('app.command_handler.bar'), // if the element has no key, the ID of the original service is used - ref('app.command_handler.baz'), + service('app.command_handler.baz'), ])]); };