Skip to content

Commit 6720be9

Browse files
tacmanweaverryan
andauthored
Update service_container/service_subscribers_locators.rst
Co-authored-by: Ryan Weaver <[email protected]>
1 parent 1031457 commit 6720be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/service_subscribers_locators.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ will share identical locators among all the services referencing them::
458458
'logger' => new Reference('logger'),
459459
];
460460
461-
$myService = $container->getDefinition(MyService::class);
461+
$myService = $container->findDefinition(MyService::class);
462462

463463
$myService->addArgument(ServiceLocatorTagPass::register($container, $locateableServices));
464464
}

0 commit comments

Comments
 (0)