From 31c6c627f210b195f8be63b24054a8848faf7bdb Mon Sep 17 00:00:00 2001 From: Sarah Khalil Date: Sat, 13 Jul 2013 23:39:16 +0200 Subject: [PATCH] [FrameworkBundle] The config:dump-reference command shows the list of bundles with the table helper --- .../FrameworkBundle/Command/ConfigDumpReferenceCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php index f9e2d403c3..f015f97974 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php @@ -66,10 +66,14 @@ EOF if (empty($name)) { $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) { $extension = $bundle->getContainerExtension(); - $output->writeln($bundle->getName().($extension ? ': '.$extension->getAlias() : '')); + $table->addRow(array($bundle->getName(), $extension ? $extension->getAlias() : '')); } + $table->render($output); return; }