Fixes from functional testing (need to automate this stuff!)
parent
600b6c8cb3
commit
83d4e3a940
|
@ -67,7 +67,7 @@ EOT
|
||||||
$baseUrl = 'http://' . self::HOMEPAGE;
|
$baseUrl = 'http://' . self::HOMEPAGE;
|
||||||
$disableTls = true;
|
$disableTls = true;
|
||||||
} elseif (!extension_loaded('openssl')) {
|
} elseif (!extension_loaded('openssl')) {
|
||||||
$output->writeln('<error>The openssl extension is required for SSL/TLS protection.</error>');
|
$output->writeln('<error>The openssl extension is required for SSL/TLS protection but is not available.</error>');
|
||||||
$output->writeln('<error>You can disable this error, at your own risk, by enabling the \'disable-tls\' option.</error>');
|
$output->writeln('<error>You can disable this error, at your own risk, by enabling the \'disable-tls\' option.</error>');
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
|
@ -79,8 +79,8 @@ EOT
|
||||||
if (!is_null($config->get('cafile'))) {
|
if (!is_null($config->get('cafile'))) {
|
||||||
$remoteFilesystemOptions = array('ssl'=>array('cafile'=>$config->get('cafile')));
|
$remoteFilesystemOptions = array('ssl'=>array('cafile'=>$config->get('cafile')));
|
||||||
}
|
}
|
||||||
if (!is_null($input->get('cafile'))) {
|
if (!is_null($input->getOption('cafile'))) {
|
||||||
$remoteFilesystemOptions = array('ssl'=>array('cafile'=>$input->get('cafile')));
|
$remoteFilesystemOptions = array('ssl'=>array('cafile'=>$input->getOption('cafile')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -208,8 +208,8 @@ class Factory
|
||||||
|
|
||||||
$rfsOptions = array();
|
$rfsOptions = array();
|
||||||
if ($disableTls === false) {
|
if ($disableTls === false) {
|
||||||
if (!is_null($input->get('cafile'))) {
|
if (!is_null($input->getOption('cafile'))) {
|
||||||
$rfsOptions = array('ssl'=>array('cafile'=>$input->get('cafile')));
|
$rfsOptions = array('ssl'=>array('cafile'=>$input->getOption('cafile')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$rfs = new RemoteFilesystem($io, $rfsOptions, $disableTls);
|
$rfs = new RemoteFilesystem($io, $rfsOptions, $disableTls);
|
||||||
|
|
Loading…
Reference in New Issue