function RemoteFilesystem::promptAuthAndRetry
Parameters
positive-int $httpStatus:
string[] $headers:
Return value
void
1 call to RemoteFilesystem::promptAuthAndRetry()
- RemoteFilesystem::get in vendor/
composer/ composer/ src/ Composer/ Util/ RemoteFilesystem.php - Get file content or copy action.
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ RemoteFilesystem.php, line 601
Class
- RemoteFilesystem
- @internal @author François Pluchino <francois.pluchino@opendisplay.com> @author Jordi Boggiano <j.boggiano@seld.be> @author Nils Adermann <naderman@naderman.de>
Namespace
Composer\UtilCode
protected function promptAuthAndRetry($httpStatus, ?string $reason = null, array $headers = []) {
$result = $this->authHelper
->promptAuthIfNeeded($this->fileUrl, $this->originUrl, $httpStatus, $reason, $headers, 1);
$this->storeAuth = $result['storeAuth'];
$this->retry = $result['retry'];
if ($this->retry) {
throw new TransportException('RETRY');
}
}