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\DownloaderCode
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);
}