Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RemoteFilesystem.php

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\Util

Code

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');
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal