Avoid outputting "Loading ... from cache" in non-verbose installs

main
Jordi Boggiano 5 years ago
parent 006985a0ea
commit 99eb86c506
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -127,7 +127,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
// use from cache if it is present and has a valid checksum or we have no checksum to check against
if ($cache && (!$checksum || $checksum === $cache->sha1($cacheKey)) && $cache->copyTo($cacheKey, $fileName)) {
if ($output) {
$io->writeError(" - Loading <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>) from cache");
$io->writeError(" - Loading <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>) from cache", true, IOInterface::VERY_VERBOSE);
}
$result = \React\Promise\resolve($fileName);
} else {

Loading…
Cancel
Save