Validate disable-tls and cafile config file values
parent
d8cbd9f057
commit
cb32c480be
|
@ -285,6 +285,11 @@ EOT
|
||||||
'autoloader-suffix' => array('is_string', function ($val) { return $val === 'null' ? null : $val; }),
|
'autoloader-suffix' => array('is_string', function ($val) { return $val === 'null' ? null : $val; }),
|
||||||
'optimize-autoloader' => array($booleanValidator, $booleanNormalizer),
|
'optimize-autoloader' => array($booleanValidator, $booleanNormalizer),
|
||||||
'prepend-autoloader' => array($booleanValidator, $booleanNormalizer),
|
'prepend-autoloader' => array($booleanValidator, $booleanNormalizer),
|
||||||
|
'disable-tls' => array($booleanValidator, $booleanNormalizer),
|
||||||
|
'cafile' => array(
|
||||||
|
function ($val) { return file_exists($val) && is_readable($val); }
|
||||||
|
function ($val) { return $val; }
|
||||||
|
)
|
||||||
);
|
);
|
||||||
$multiConfigValues = array(
|
$multiConfigValues = array(
|
||||||
'github-protocols' => array(
|
'github-protocols' => array(
|
||||||
|
|
|
@ -39,7 +39,8 @@ class Config
|
||||||
'optimize-autoloader' => false,
|
'optimize-autoloader' => false,
|
||||||
'prepend-autoloader' => true,
|
'prepend-autoloader' => true,
|
||||||
'github-domains' => array('github.com'),
|
'github-domains' => array('github.com'),
|
||||||
'disable-tls' => false
|
'disable-tls' => false,
|
||||||
|
'cafile' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
public static $defaultRepositories = array(
|
public static $defaultRepositories = array(
|
||||||
|
|
Loading…
Reference in New Issue