\Composer\AutoloadClassMapGenerator

ClassMapGenerator

Summary

Methods
Properties
Constants
dump()
createMap()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
findClasses()
No private properties found
N/A

Methods

dump()

dump(\Traversable  $dirs, string  $file) 

Generate a class map file

Parameters

\Traversable $dirs

Directories or a single path to search in

string $file

The name of the class map file

createMap()

createMap(\Iterator|string  $path, string  $blacklist = null, \Composer\IO\IOInterface  $io = null, string  $namespace = null) : array

Iterate over all files in the given directory searching for classes

Parameters

\Iterator|string $path

The path to search in or an iterator

string $blacklist

Regex that matches against the file path that exclude from the classmap.

\Composer\IO\IOInterface $io

IO object

string $namespace

Optional namespace prefix to filter by

Throws

\RuntimeException

When the path is neither an existing file nor directory

Returns

array —

A class map array

findClasses()

findClasses(string  $path) : array

Extract the classes in the given file

Parameters

string $path

The file to check

Throws

\RuntimeException

Returns

array —

The found classes