Skip to content

Commit 899fc71

Browse files
committed
minor #8487 [FrameworkBundle] The config:dump-reference command shows the list of bundles with the table helper (saro0h)
This PR was merged into the master branch. Discussion ---------- [FrameworkBundle] The config:dump-reference command shows the list of bundles with the table helper | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no Commits ------- 31c6c62 [FrameworkBundle] The config:dump-reference command shows the list of bundles with the table helper
2 parents 8657293 + cfeb094 commit 899fc71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Command/ConfigDumpReferenceCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
6969

7070
if (empty($name)) {
7171
$output->writeln('Available registered bundles with their extension alias if available:');
72+
73+
$table = $this->getHelperSet()->get('table');
74+
$table->setHeaders(array('Bundle name','Extension alias'));
7275
foreach ($bundles as $bundle) {
7376
$extension = $bundle->getContainerExtension();
74-
$output->writeln($bundle->getName().($extension ? ': '.$extension->getAlias() : ''));
77+
$table->addRow(array($bundle->getName(), $extension ? $extension->getAlias() : ''));
7578
}
79+
$table->render($output);
7680

7781
return;
7882
}

0 commit comments

Comments
 (0)