Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95b8fea

Browse files
tacmanjaviereguiluz
authored andcommitted
[DependencyInjection] Show how to get $myService
1 parentb688f71 commit95b8fea

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
@@ -467,6 +467,8 @@ will share identical locators among all the services referencing them::
467467
// ...
468468
'logger' => new Reference('logger'),
469469
];
470+
471+
$myService = $container->findDefinition(MyService::class);
470472

471473
$myService->addArgument(ServiceLocatorTagPass::register($container, $locateableServices));
472474
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp