8000 Merge branch '4.4' into 5.4 · symfony/symfony-docs@8a4b3dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a4b3dc

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: [DependencyInjection] Show how to get $myService
2 parents 71ce169 + 68e48b0 commit 8a4b3dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ will share identical locators among all the services referencing them::
459459
// ...
460460
'logger' => new Reference('logger'),
461461
];
462+
463+
$myService = $container->findDefinition(MyService::class);
462464

463465
$myService->addArgument(ServiceLocatorTagPass::register($container, $locateableServices));
464466
}

0 commit comments

Comments
 (0)
0