$classLoaderaddNamespace()

Add a namespace to point to a path root

Multiple root paths may be specified for a single namespace by calling this method more than once.

Example

$classLoader->addNamespace('HelloWorld', '/path/to/that/');

Usage

$classLoader->addNamespace(string $namespace, string $path);

Arguments

NameType(s)Description
$namespacestring
$pathstring

Full system path


$classLoader methods and properties

API reference based on ProcessWire core version 3.0.251