8000 bug #49849 [FrameworkBundle] Fix services usages output for text desc… · symfony/symfony@bf65d7b · GitHub
[go: up one dir, main page]

Skip to content

Commit bf65d7b

Browse files
committed
bug #49849 [FrameworkBundle] Fix services usages output for text descriptor (rmikalkenas)
This PR was merged into the 6.2 branch. Discussion ---------- [FrameworkBundle] Fix services usages output for text descriptor | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - If service is being used by lots of other services, the debug container command becomes unreadable, because `Usages` expands table. Replacing `, ` separator with new line fixes this issue Commits ------- 71baeab [FrameworkBundle] Fix services usages output for text descriptor
2 parents 18e6e34 + 71baeab commit bf65d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
361361
}
362362

363363
$inEdges = null !== $builder && isset($options['id']) ? $this->getServiceEdges($builder, $options['id']) : [];
364-
$tableRows[] = ['Usages', $inEdges ? implode(', ', $inEdges) : 'none'];
364+
$tableRows[] = ['Usages', $inEdges ? implode(\PHP_EOL, $inEdges) : 'none'];
365365

366366
$options['output']->table($tableHeaders, $tableRows);
367367
}

0 commit comments

Comments
 (0)
0