sort bundles in config:dump-reference command
This backports #17495 to the `2.3` branch.
This commit is contained in:
parent
93b831b395
commit
a5c881182f
@ -66,6 +66,11 @@ 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:');
|
||||||
|
|
||||||
|
usort($bundles, function($bundleA, $bundleB) {
|
||||||
|
return strcmp($bundleA->getName(), $bundleB->getName());
|
||||||
|
});
|
||||||
|
|
||||||
foreach ($bundles as $bundle) {
|
foreach ($bundles as $bundle) {
|
||||||
$extension = $bundle->getContainerExtension();
|
$extension = $bundle->getContainerExtension();
|
||||||
$output->writeln($bundle->getName().($extension ? ': '.$extension->getAlias() : ''));
|
$output->writeln($bundle->getName().($extension ? ': '.$extension->getAlias() : ''));
|
||||||
|
Reference in New Issue
Block a user