$classLoaderaddPrefix()

Map a class prefix to a path

This is used as a helper/fallback and class is not required to be in given path, but the path will be added as another to check when not found in namespace path(s).

Usage

$classLoader->addPrefix(string $prefix, string $path);

Arguments

NameType(s)Description
$prefixstring

Case sensitive prefix specific to class name (not namespace).

$pathstring

$classLoader methods and properties

API reference based on ProcessWire core version 3.0.252