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

Breadcrumb

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

function FileDownloader::getDistPath

Parameters

PATHINFO_EXTENSION|PATHINFO_BASENAME $component:

2 calls to FileDownloader::getDistPath()
FileDownloader::getFileName in vendor/composer/composer/src/Composer/Downloader/FileDownloader.php
Gets file name for specific package
FileDownloader::install in vendor/composer/composer/src/Composer/Downloader/FileDownloader.php
@inheritDoc

File

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

Class

FileDownloader
Base downloader for files

Namespace

Composer\Downloader

Code

protected function getDistPath(PackageInterface $package, int $component) : string {
    return pathinfo((string) parse_url(strtr((string) $package->getDistUrl(), '\\', '/'), PHP_URL_PATH), $component);
}

API Navigation

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