|
static | dump ($dirs, $file) |
|
static | createMap ($path, $whitelist=null, IOInterface $io=null, $namespace=null) |
|
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 | $path | The path to search in or an iterator |
string | $whitelist | Regex that matches against the file path |
IOInterface | $io | IO object |
string | $namespace | Optional namespace prefix to filter by |
- Returns
- array A class map array
- Exceptions
-
\RuntimeException | When 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 | $dirs | Directories or a single path to search in |
string | $file | The 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 | $path | The file to check |
- Exceptions
-
- Returns
- array The found classes
Definition at line 110 of file ClassMapGenerator.php.
References elseif.