class FilePatternResolver (View source)

Resolve files after a pattern.

The returned files will not be checked for recursion and for readability.

Constants

protected RECURSIVE_GLOB_PATTERN

protected SIMPLE_GLOB_PATTERN

Methods

static array
resolveFilesByPattern(string $filePattern, string|null $filePathForRelativeResolves, string $defaultFileEndForUnspecificGlobbing)

No description

static bool
isPatternStreamWrapper(string $filePattern)

No description

static string
resolveRelativePath(string $filePattern, string|null $filePathForRelativeResolves)

No description

static array
parseGlobPatternAndResolveFiles(string $filePattern, string $defaultFileNameEnd)

No description

static array
iterateOverFilesAndSelectByFileEnding(Iterator $fileIterator, string $fileNameEnd)

No description

Details

static array resolveFilesByPattern(string $filePattern, string|null $filePathForRelativeResolves, string $defaultFileEndForUnspecificGlobbing)

No description

Parameters

string $filePattern
string|null $filePathForRelativeResolves
string $defaultFileEndForUnspecificGlobbing

Return Value

array

Exceptions

Exception

static protected bool isPatternStreamWrapper(string $filePattern)

No description

Parameters

string $filePattern

Return Value

bool

static protected string resolveRelativePath(string $filePattern, string|null $filePathForRelativeResolves)

No description

Parameters

string $filePattern
string|null $filePathForRelativeResolves

Return Value

string

static protected array parseGlobPatternAndResolveFiles(string $filePattern, string $defaultFileNameEnd)

No description

Parameters

string $filePattern
string $defaultFileNameEnd

Return Value

array

static protected array iterateOverFilesAndSelectByFileEnding(Iterator $fileIterator, string $fileNameEnd)

No description

Parameters

Iterator $fileIterator
string $fileNameEnd

when file matches this ending it will be included.

Return Value

array