$classLoaderaddClassMap()

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

NameType(s)Description
$classMaparray

Array of class files indexed by class name. Files must have no leading slash.

$fromPathstring

Starting path (with trailing slash)


$classLoader methods and properties

API reference based on ProcessWire core version 3.0.261