Skip to content

Commit 8f1ea12

Browse files
committed
minor #10556 Add missing container argument for ServiceLocatorTagPass::register() call (umulmrum)
This PR was merged into the 3.4 branch. Discussion ---------- Add missing container argument for ServiceLocatorTagPass::register() call The last example on the service locator doc page is missing an argument for the ServiceLocatorTagPass::register() call. Commits ------- 574128f Add missing container argument for ServiceLocatorTagPass::register() call
2 parents 69f7dce + 574128f commit 8f1ea12

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
@@ -362,7 +362,7 @@ will share identical locators amongst all the services referencing them::
362362
'logger' => new Reference('logger'),
363363
);
364364

365-
$myService->addArgument(ServiceLocatorTagPass::register($locateableServices));
365+
$myService->addArgument(ServiceLocatorTagPass::register($container, $locateableServices));
366366
}
367367

368368
.. _`Command pattern`: https://en.wikipedia.org/wiki/Command_pattern

0 commit comments

Comments
 (0)