class ClassMapGenerator

ClassMapGenerator

Methods

static 
dump(array|string $dirs, string $file)

Generate a class map file

static array
createMap(Iterator|string $dir)

Iterate over all files in the given directory searching for classes

Details

at line line 27
static dump(array|string $dirs, string $file)

Generate a class map file

Parameters

array|string $dirs Directories or a single path to search in
string $file The name of the class map file

at line line 46
static array createMap(Iterator|string $dir)

Iterate over all files in the given directory searching for classes

Parameters

Iterator|string $dir The directory to search in or an iterator

Return Value

array A class map array