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

Breadcrumb

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

function FileDownloader::clearLastCacheWrite

2 calls to FileDownloader::clearLastCacheWrite()
ArchiveDownloader::install in vendor/composer/composer/src/Composer/Downloader/ArchiveDownloader.php
@inheritDoc
FileDownloader::download in vendor/composer/composer/src/Composer/Downloader/FileDownloader.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Downloader/FileDownloader.php, line 383

Class

FileDownloader
Base downloader for files

Namespace

Composer\Downloader

Code

protected function clearLastCacheWrite(PackageInterface $package) : void {
    if ($this->cache !== null && isset($this->lastCacheWrites[$package->getName()])) {
        $this->cache
            ->remove($this->lastCacheWrites[$package->getName()]);
        unset($this->lastCacheWrites[$package->getName()]);
    }
}

API Navigation

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