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

Breadcrumb

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

function CurlDownloader::rejectJob

Parameters

Job $job:

1 call to CurlDownloader::rejectJob()
CurlDownloader::tick in vendor/composer/composer/src/Composer/Util/Http/CurlDownloader.php

File

vendor/composer/composer/src/Composer/Util/Http/CurlDownloader.php, line 647

Class

CurlDownloader
@internal @author Jordi Boggiano <j.boggiano@seld.be> @author Nicolas Grekas <p@tchwork.com> @phpstan-type Attributes array{retryAuthFailure: bool, redirects: int<0, max>, retries: int<0, max>, storeAuth:…

Namespace

Composer\Util\Http

Code

private function rejectJob(array $job, \Exception $e) : void {
    if (is_resource($job['headerHandle'])) {
        fclose($job['headerHandle']);
    }
    if (is_resource($job['bodyHandle'])) {
        fclose($job['bodyHandle']);
    }
    if (null !== $job['filename']) {
        @unlink($job['filename'] . '~');
    }
    $job['reject']($e);
}

API Navigation

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