class ArchivableFilesFinder extends FilterIterator (View source)

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

Properties

protected Finder $finder

Methods

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

Initializes the internal Symfony Finder with appropriate filters

accept()

No description

Details

__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

accept()