Composer API
Class

Composer\Package\Archiver\ArchivableFilesFinder

class ArchivableFilesFinder extends FilterIterator

A Symfony Finder wrapper which locates files that should go into archives

Handles .gitignore, .gitattributes and .hgignore files as well as composer's own exclude rules from composer.json

Methods

__construct(string $sources, array $excludes, bool $ignoreFilters = false)

Initializes the internal Symfony Finder with appropriate filters

accept()

Details

at line 42
public __construct(string $sources, array $excludes, bool $ignoreFilters = false)

Initializes the internal Symfony Finder with appropriate filters

Parameters

string $sources Path to source files to be archived
array $excludes Composer's own exclude rules from composer.json
bool $ignoreFilters Ignore filters when looking for files

at line 92
public accept()