8000 Hide excluded services from container debug list · symfony/symfony@9d2f10f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d2f10f

Browse files
apfelboxnicolas-grekas
authored andcommitted
Hide excluded services from container debug list
1 parent c871df8 commit 9d2f10f

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)
0