1
0
Fork 0

changed name of the option to optimize-autoloader

pull/2605/head
Robert Boloc 2014-01-17 14:43:54 +01:00
parent 55da519cae
commit 8a221854b1
5 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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"
},

View File

@ -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(

View File

@ -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>');

View File

@ -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'),
);