Skip to content

Commit 574128f

Browse files
committed
Add missing container argument for ServiceLocatorTagPass::register() call
1 parent 69f7dce commit 574128f

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)