Use reactphp/promise v2 compatible code
parent
59152ad7aa
commit
75ccf6557a
|
@ -496,7 +496,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
$promise = $this->download($package, $targetDir.'_compare', null, false);
|
$promise = $this->download($package, $targetDir.'_compare', null, false);
|
||||||
$promise->catch(function ($ex) use (&$e) {
|
$promise->then(null, function ($ex) use (&$e) {
|
||||||
$e = $ex;
|
$e = $ex;
|
||||||
});
|
});
|
||||||
$this->httpDownloader->wait();
|
$this->httpDownloader->wait();
|
||||||
|
@ -504,7 +504,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
$promise = $this->install($package, $targetDir.'_compare', false);
|
$promise = $this->install($package, $targetDir.'_compare', false);
|
||||||
$promise->catch(function ($ex) use (&$e) {
|
$promise->then(null, function ($ex) use (&$e) {
|
||||||
$e = $ex;
|
$e = $ex;
|
||||||
});
|
});
|
||||||
$this->process->wait();
|
$this->process->wait();
|
||||||
|
|
Loading…
Reference in New Issue