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

Appearance settings

Commit 9d2f10f

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

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
+3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.