Added sort-packages into config
parent
c9501a4cc1
commit
b298b9e8c6
|
@ -322,6 +322,7 @@ EOT
|
|||
},
|
||||
),
|
||||
'autoloader-suffix' => array('is_string', function ($val) { return $val === 'null' ? null : $val; }),
|
||||
'sort-packages' => array($booleanValidator, $booleanNormalizer),
|
||||
'optimize-autoloader' => array($booleanValidator, $booleanNormalizer),
|
||||
'classmap-authoritative' => array($booleanValidator, $booleanNormalizer),
|
||||
'prepend-autoloader' => array($booleanValidator, $booleanNormalizer),
|
||||
|
|
|
@ -117,7 +117,7 @@ EOT
|
|||
$versionParser->parseConstraints($constraint);
|
||||
}
|
||||
|
||||
$sortPackages = $input->getOption('sort-packages');
|
||||
$sortPackages = $input->getOption('sort-packages') || $composer->getConfig()->get('sort-packages');
|
||||
|
||||
if (!$this->updateFileCleanly($json, $baseRequirements, $requirements, $requireKey, $removeKey, $sortPackages)) {
|
||||
foreach ($requirements as $package => $version) {
|
||||
|
|
|
@ -39,6 +39,7 @@ class Config
|
|||
'bin-compat' => 'auto',
|
||||
'discard-changes' => false,
|
||||
'autoloader-suffix' => null,
|
||||
'sort-packages' => false,
|
||||
'optimize-autoloader' => false,
|
||||
'classmap-authoritative' => false,
|
||||
'prepend-autoloader' => true,
|
||||
|
|
Loading…
Reference in New Issue