$classLoader→addClassMap()
Add a ProcessWire namespace class map of [ 'ClassName' => 'from/path/ClassName.php' ]
If the file basename is omitted and file ends with a slash, then the ClassName + '.php' is assumed.
Available since version 3.0.260.
Usage
$classLoader->addClassMap(array $classMap, string $fromPath);Arguments
| Name | Type(s) | Description |
|---|---|---|
$classMap | array | Array of class files indexed by class name. Files must have no leading slash. |
$fromPath | string | Starting path (with trailing slash) |
$classLoader methods and properties
API reference based on ProcessWire core version 3.0.261