changed name of the option to optimize-autoloader

main
Robert Boloc 11 years ago
parent 55da519cae
commit 8a221854b1

@ -710,7 +710,7 @@ The following options are supported:
interoperability issues with other autoloaders.
* **autoloader-suffix:** Defaults to `null`. String to be used as a suffix for
the generated Composer autoloader. When null a random one will be generated.
* **autoloader-optimize-always** Defaults to `false`. Always optimize when dumping
* **optimize-autoloader** Defaults to `false`. Always optimize when dumping
the autoloader.
* **github-domains:** Defaults to `["github.com"]`. A list of domains to use in
github mode. This is used for GitHub Enterprise setups.

@ -180,7 +180,7 @@
"type": "string",
"description": "Optional string to be used as a suffix for the generated Composer autoloader. When null a random one will be generated."
},
"autoloader-optimize-always": {
"optimize-autoloader": {
"type": "boolean",
"description": "Always optimize when dumping the autoloader"
},

@ -283,7 +283,7 @@ EOT
}
),
'autoloader-suffix' => array('is_string', function ($val) { return $val === 'null' ? null : $val; }),
'autoloader-optimize-always' => array($booleanValidator, $booleanNormalizer),
'optimize-autoloader' => array($booleanValidator, $booleanNormalizer),
'prepend-autoloader' => array($booleanValidator, $booleanNormalizer),
);
$multiConfigValues = array(

@ -51,7 +51,7 @@ EOT
$package = $composer->getPackage();
$config = $composer->getConfig();
$optimize = $input->getOption('optimize') || $config->get('autoloader-optimize-always');
$optimize = $input->getOption('optimize') || $config->get('optimize-autoloader');
if ($optimize) {
$output->writeln('<info>Generating optimized autoload files</info>');

@ -36,7 +36,7 @@ class Config
'cache-files-maxsize' => '300MiB',
'discard-changes' => false,
'autoloader-suffix' => null,
'autoloader-optimize-always' => false,
'optimize-autoloader' => false,
'prepend-autoloader' => true,
'github-domains' => array('github.com'),
);

Loading…
Cancel
Save