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

Breadcrumb

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

function PharDownloader::extract

@inheritDoc

Overrides ArchiveDownloader::extract

File

vendor/composer/composer/src/Composer/Downloader/PharDownloader.php, line 28

Class

PharDownloader
Downloader for phar files

Namespace

Composer\Downloader

Code

protected function extract(PackageInterface $package, string $file, string $path) : PromiseInterface {
    // Can throw an UnexpectedValueException
    $archive = new \Phar($file);
    $archive->extractTo($path, null, true);
    
    /* TODO: handle openssl signed phars
     * https://github.com/composer/composer/pull/33#issuecomment-2250768
     * https://github.com/koto/phar-util
     * http://blog.kotowicz.net/2010/08/hardening-php-how-to-securely-include.html
     */
    return \React\Promise\resolve(null);
}

API Navigation

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