|
|
@ -43,7 +43,6 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
|
|
|
protected $httpDownloader;
|
|
|
|
protected $httpDownloader;
|
|
|
|
protected $filesystem;
|
|
|
|
protected $filesystem;
|
|
|
|
protected $cache;
|
|
|
|
protected $cache;
|
|
|
|
protected $outputProgress = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @private this is only public for php 5.3 support in closures
|
|
|
|
* @private this is only public for php 5.3 support in closures
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -236,16 +235,6 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
|
|
|
$this->filesystem->rename($this->getFileName($package, $path), $path . pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME));
|
|
|
|
$this->filesystem->rename($this->getFileName($package, $path), $path . pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function setOutputProgress($outputProgress)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->outputProgress = $outputProgress;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* TODO mark private in v3
|
|
|
|
* TODO mark private in v3
|
|
|
|
* @protected This is public due to PHP 5.3
|
|
|
|
* @protected This is public due to PHP 5.3
|
|
|
@ -340,11 +329,9 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
|
|
|
public function getLocalChanges(PackageInterface $package, $targetDir)
|
|
|
|
public function getLocalChanges(PackageInterface $package, $targetDir)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$prevIO = $this->io;
|
|
|
|
$prevIO = $this->io;
|
|
|
|
$prevProgress = $this->outputProgress;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->io = new NullIO;
|
|
|
|
$this->io = new NullIO;
|
|
|
|
$this->io->loadConfiguration($this->config);
|
|
|
|
$this->io->loadConfiguration($this->config);
|
|
|
|
$this->outputProgress = false;
|
|
|
|
|
|
|
|
$e = null;
|
|
|
|
$e = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -362,7 +349,6 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->io = $prevIO;
|
|
|
|
$this->io = $prevIO;
|
|
|
|
$this->outputProgress = $prevProgress;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($e) {
|
|
|
|
if ($e) {
|
|
|
|
throw $e;
|
|
|
|
throw $e;
|
|
|
|