[FrameworkBundle] The config:dump-reference command shows the list of bundles with the table helper
This commit is contained in:
parent
63e6368dc0
commit
31c6c627f2
@ -66,10 +66,14 @@ EOF
|
|||||||
|
|
||||||
if (empty($name)) {
|
if (empty($name)) {
|
||||||
$output->writeln('Available registered bundles with their extension alias if available:');
|
$output->writeln('Available registered bundles with their extension alias if available:');
|
||||||
|
|
||||||
|
$table = $this->getHelperSet()->get('table');
|
||||||
|
$table->setHeaders(array('Bundle name','Extension alias'));
|
||||||
foreach ($bundles as $bundle) {
|
foreach ($bundles as $bundle) {
|
||||||
$extension = $bundle->getContainerExtension();
|
$extension = $bundle->getContainerExtension();
|
||||||
$output->writeln($bundle->getName().($extension ? ': '.$extension->getAlias() : ''));
|
$table->addRow(array($bundle->getName(), $extension ? $extension->getAlias() : ''));
|
||||||
}
|
}
|
||||||
|
$table->render($output);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user