Skip to content

Commit a2f22b8

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: Fix docs referencing an incorrect PHP function
2 parents f34e77d + 51d98f0 commit a2f22b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ argument of type ``service_locator``:
346346
347347
$services->set(CommandBus::class)
348348
->args([service_locator([
349-
'App\FooCommand' => ref('app.command_handler.foo'),
350-
'App\BarCommand' => ref('app.command_handler.bar'),
349+
'App\FooCommand' => service('app.command_handler.foo'),
350+
'App\BarCommand' => service('app.command_handler.bar'),
351351
// if the element has no key, the ID of the original service is used
352-
ref('app.command_handler.baz'),
352+
service('app.command_handler.baz'),
353353
])]);
354354
};
355355

0 commit comments

Comments
 (0)