$downloadManager
$downloadManager :
__construct(\Composer\Downloader\DownloadManager $downloadManager)
\Composer\Downloader\DownloadManager | $downloadManager | A manager used to download package sources |
addArchiver(\Composer\Package\Archiver\ArchiverInterface $archiver)
\Composer\Package\Archiver\ArchiverInterface | $archiver |
getPackageFilename(\Composer\Package\PackageInterface $package) : string
Generate a distinct filename for a particular version of a package.
\Composer\Package\PackageInterface | $package | The package to get a name for |
A filename without an extension
archive(\Composer\Package\PackageInterface $package, string $format, string $targetDir, string|null $fileName = null, boolean $ignoreFilters = false) : string
Create an archive of the specified package.
\Composer\Package\PackageInterface | $package | The package to archive |
string | $format | The format of the archive (zip, tar, ...) |
string | $targetDir | The directory where to build the archive |
string|null | $fileName | The relative file name to use for the archive, or null to generate the package name. Note that the format will be appended to this name |
boolean | $ignoreFilters | Ignore filters when looking for files in the package |
The path of the created archive