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

Commit9d2f10f

Browse files
apfelboxnicolas-grekas
authored andcommitted
Hide excluded services from container debug list
1 parentc871df8 commit9d2f10f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ private function findServiceIdsContaining(ContainerBuilder $builder, string $nam
308308
if (!$showHidden &&str_starts_with($serviceId,'.')) {
309309
continue;
310310
}
311+
if (!$showHidden &&$builder->hasDefinition($serviceId) &&$builder->getDefinition($serviceId)->hasTag('container.excluded')) {
312+
continue;
313+
}
311314
if (false !==stripos(str_replace('\\','',$serviceId),$name)) {
312315
$foundServiceIdsIgnoringBackslashes[] =$serviceId;
313316
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp