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

Breadcrumb

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

function ArchiverInterface::archive

Create an archive from the sources.

Parameters

string $sources The sources directory:

string $target The target file:

string $format The format used for archive:

string[] $excludes A list of patterns for files to exclude:

bool $ignoreFilters Whether to ignore filters when looking for files:

Return value

string The path to the written archive file

2 methods override ArchiverInterface::archive()
PharArchiver::archive in vendor/composer/composer/src/Composer/Package/Archiver/PharArchiver.php
@inheritDoc
ZipArchiver::archive in vendor/composer/composer/src/Composer/Package/Archiver/ZipArchiver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Package/Archiver/ArchiverInterface.php, line 33

Class

ArchiverInterface
@author Till Klampaeckel <till@php.net> @author Matthieu Moquet <matthieu@moquet.net> @author Nils Adermann <naderman@naderman.de>

Namespace

Composer\Package\Archiver

Code

public function archive(string $sources, string $target, string $format, array $excludes = [], bool $ignoreFilters = false) : string;

API Navigation

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