We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efed0cb commit bdcc77fCopy full SHA for bdcc77f
Command/AbstractConfigCommand.php
@@ -30,7 +30,13 @@ protected function listBundles(OutputInterface $output)
30
{
31
$headers = array('Bundle name', 'Extension alias');
32
$rows = array();
33
- foreach ($this->getContainer()->get('kernel')->getBundles() as $bundle) {
+
34
+ $bundles = $this->getContainer()->get('kernel')->getBundles();
35
+ usort($bundles, function($bundleA, $bundleB) {
36
+ return strcmp($bundleA->getName(), $bundleB->getName());
37
+ });
38
39
+ foreach ($bundles as $bundle) {
40
$extension = $bundle->getContainerExtension();
41
$rows[] = array($bundle->getName(), $extension ? $extension->getAlias() : '');
42
}
0 commit comments