From 574128ffc1809b2a4e8fc48567e3cb816be78491 Mon Sep 17 00:00:00 2001 From: Stefan Kruppa Date: Thu, 25 Oct 2018 10:26:14 +0200 Subject: [PATCH] Add missing container argument for ServiceLocatorTagPass::register() call --- service_container/service_subscribers_locators.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_container/service_subscribers_locators.rst b/service_container/service_subscribers_locators.rst index f46089677f0..26daec05ace 100644 --- a/service_container/service_subscribers_locators.rst +++ b/service_container/service_subscribers_locators.rst @@ -362,7 +362,7 @@ will share identical locators amongst all the services referencing them:: 'logger' => new Reference('logger'), ); - $myService->addArgument(ServiceLocatorTagPass::register($locateableServices)); + $myService->addArgument(ServiceLocatorTagPass::register($container, $locateableServices)); } .. _`Command pattern`: https://en.wikipedia.org/wiki/Command_pattern