Composer API
Class

Composer\Package\Archiver\BaseExcludeFilter

abstract class BaseExcludeFilter

Methods

__construct(string $sourcePath)

bool filter(string $relativePath, bool $exclude)

Checks the given path against all exclude patterns in this filter

Details

at line 35
public __construct(string $sourcePath)

Parameters

string $sourcePath Directory containing sources to be filtered

at line 51
public bool filter(string $relativePath, bool $exclude)

Checks the given path against all exclude patterns in this filter

Negated patterns overwrite exclude decisions of previous filters.

Parameters

string $relativePath The file's path relative to the sourcePath
bool $exclude Whether a previous filter wants to exclude this file

Return Value

bool Whether the file should be excluded