Updates per @stof
parent
d6c46f2091
commit
5fd3223aec
|
@ -177,7 +177,7 @@
|
||||||
"description": "The default style of handling dirty updates, defaults to false and can be any of true, false or \"stash\"."
|
"description": "The default style of handling dirty updates, defaults to false and can be any of true, false or \"stash\"."
|
||||||
},
|
},
|
||||||
"autoloader-suffix": {
|
"autoloader-suffix": {
|
||||||
"type": ["string", "boolean"],
|
"type": "string",
|
||||||
"description": "Optional string to be used as a suffix to the autoloader generator. When null a random one will be generated."
|
"description": "Optional string to be used as a suffix to the autoloader generator. When null a random one will be generated."
|
||||||
},
|
},
|
||||||
"prepend-autoloader": {
|
"prepend-autoloader": {
|
||||||
|
|
|
@ -169,7 +169,7 @@ EOF;
|
||||||
$classmapFile .= ");\n";
|
$classmapFile .= ");\n";
|
||||||
|
|
||||||
if (!$suffix) {
|
if (!$suffix) {
|
||||||
$suffix = $config->get('autoloader-suffix') ? $config->get('autoloader-suffix') : md5(uniqid('', true));
|
$suffix = $config->get('autoloader-suffix') ?: md5(uniqid('', true));
|
||||||
}
|
}
|
||||||
|
|
||||||
file_put_contents($targetDir.'/autoload_namespaces.php', $namespacesFile);
|
file_put_contents($targetDir.'/autoload_namespaces.php', $namespacesFile);
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Config
|
||||||
'cache-files-ttl' => null, // fallback to cache-ttl
|
'cache-files-ttl' => null, // fallback to cache-ttl
|
||||||
'cache-files-maxsize' => '300MiB',
|
'cache-files-maxsize' => '300MiB',
|
||||||
'discard-changes' => false,
|
'discard-changes' => false,
|
||||||
'autoload-suffix' => false,
|
'autoload-suffix' => null,
|
||||||
'prepend-autoloader' => true,
|
'prepend-autoloader' => true,
|
||||||
'github-domains' => array('github.com'),
|
'github-domains' => array('github.com'),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue