Skip to content

Commit be68548

Browse files
authored
Fix docs referencing an incorrect PHP function
1 parent 18967c7 commit be68548

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
@@ -293,10 +293,10 @@ argument of type ``service_locator``:
293293
294294
$services->set(CommandBus::class)
295295
->args([service_locator([
296-
'App\FooCommand' => ref('app.command_handler.foo'),
297-
'App\BarCommand' => ref('app.command_handler.bar'),
296+
'App\FooCommand' => service('app.command_handler.foo'),
297+
'App\BarCommand' => service('app.command_handler.bar'),
298298
// if the element has no key, the ID of the original service is used
299-
ref('app.command_handler.baz'),
299+
service('app.command_handler.baz'),
300300
])]);
301301
};
302302

0 commit comments

Comments
 (0)