TYPO3  7.6
Static Public Member Functions | Static Private Member Functions | List of all members
ClassMapGenerator Class Reference

Static Public Member Functions

static dump ($dirs, $file)
 
static createMap ($path, $whitelist=null, IOInterface $io=null, $namespace=null)
 

Static Private Member Functions

static findClasses ($path)
 

Detailed Description

ClassMapGenerator

Definition at line 22 of file ClassMapGenerator.php.

Member Function Documentation

static createMap (   $path,
  $whitelist = null,
IOInterface  $io = null,
  $namespace = null 
)
static

Iterate over all files in the given directory searching for classes

Parameters
\Iterator | string$pathThe path to search in or an iterator
string$whitelistRegex that matches against the file path
IOInterface$ioIO object
string$namespaceOptional namespace prefix to filter by
Returns
array A class map array
Exceptions
\RuntimeExceptionWhen the path is neither an existing file nor directory

Definition at line 53 of file ClassMapGenerator.php.

References Finder\create(), and elseif.

Referenced by ClassLoadingInformationGenerator\createClassMap().

static dump (   $dirs,
  $file 
)
static

Generate a class map file

Parameters
\Traversable$dirsDirectories or a single path to search in
string$fileThe name of the class map file

Definition at line 30 of file ClassMapGenerator.php.

static findClasses (   $path)
staticprivate

Extract the classes in the given file

Parameters
string$pathThe file to check
Exceptions
\RuntimeException
Returns
array The found classes

Definition at line 110 of file ClassMapGenerator.php.

References elseif.