Prep for composer changes (#8075)

* Prep for composer changes

* Update composer.json, composer.lock and a small update to phpmailer and Yaml

* Prevent accidental `composer update` runs

* Add  --no-interaction to daily.sh
This commit is contained in:
Tony Murray
2018-01-22 08:16:37 -06:00
committed by GitHub
parent fbca432296
commit 6878df8c12
27 changed files with 3976 additions and 3281 deletions

View File

@@ -54,12 +54,16 @@ if (!empty($path_exec)) {
}
// Download composer.phar (code from the composer web site)
$sha = trim(file_get_contents('http://composer.github.io/installer.sig'));
$good_sha = trim(@file_get_contents('http://composer.github.io/installer.sig'));
// Download composer.phar (code from the composer web site)
@copy('http://getcomposer.org/installer', 'composer-setup.php');
if (@hash_file('SHA384', 'composer-setup.php') === $sha) {
if (!empty($good_sha) && @hash_file('SHA384', 'composer-setup.php') === $good_sha) {
// Installer verified
shell_exec('php composer-setup.php');
$exec = 'php ' . $install_dir . '/composer.phar';
} else {
echo "Corrupted download.\n";
}
@unlink('composer-setup.php');
}