Closed
Description
public function process(ContainerBuilder $container): void
{
// ...
$locateableServices = [
// ...
'logger' => new Reference('logger'),
];
$myService->addArgument(ServiceLocatorTagPass::register($container, $locateableServices));
}
Could you please update the documentation to show how to get $myService?
I tried
$container->get(MyService::class)
but that's not right. Thanks.
@weaverryan or anyone else, if you answer here, I'll add it and make a PR.
Metadata
Metadata
Assignees
Labels
No labels