TYPO3 CMS  TYPO3_7-6
Composer\Autoload\ClassMapGenerator Class Reference

Static Public Member Functions

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

Static Private Member Functions

static findClasses ($path)
 

Detailed Description

Member Function Documentation

◆ createMap()

static Composer\Autoload\ClassMapGenerator::createMap (   $path,
  $blacklist = 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$blacklistRegex that matches against the file path that exclude from the classmap.
IOInterface$ioIO object
string$namespaceOptional namespace prefix to filter by
Exceptions

Definition at line 60 of file ClassMapGenerator.php.

Referenced by TYPO3\CMS\Core\Core\ClassLoadingInformationGenerator\createClassMap().

◆ dump()

static Composer\Autoload\ClassMapGenerator::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 38 of file ClassMapGenerator.php.

◆ findClasses()

static Composer\Autoload\ClassMapGenerator::findClasses (   $path)
staticprivate

Extract the classes in the given file

Parameters
string$pathThe file to check
Exceptions

Definition at line 117 of file ClassMapGenerator.php.