Skip to content

Commit 46c036d

Browse files
committed
minor #17298 [DependencyInjection] Fix docs referencing an incorrect PHP function (Toflar)
This PR was submitted for the 6.1 branch but it was merged into the 5.4 branch instead. Discussion ---------- [DependencyInjection] Fix docs referencing an incorrect PHP function Looks like some leftover? At least, there is no `ref` function 🤔 Commits ------- f0048ef Fix docs referencing an incorrect PHP function
2 parents d0d2f7f + f0048ef commit 46c036d

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)