Skip to content

Commit 146050c

Browse files
committed
minor #12944 Update example to use tagged_locator helper function (HypeMC)
This PR was merged into the 4.3 branch. Discussion ---------- Update example to use tagged_locator helper function For some reason all php examples use the `tagged_locator` helper function except one. This has been changed since I don't see any apparent reason why not to use to & it also keeps the examples more consistent. Commits ------- 8b26d01 Update example to use tagged_locator helper function
2 parents e702e0a + 8b26d01 commit 146050c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ attribute to the locator service defining the name of this custom method:
555555
return function(ContainerConfigurator $configurator) {
556556
$configurator->services()
557557
->set(App\HandlerCollection::class)
558-
->args([service_locator(tagged('app.handler', null, 'myOwnMethodName'))])
558+
->args([tagged_locator('app.handler', null, 'myOwnMethodName')])
559559
;
560560
};
561561

0 commit comments

Comments
 (0)