Autoloader::add_namespace( string $prefix, string $base_dir, bool $prepend = false )

Adds a base directory for a namespace prefix.


Parameters

$prefix

(Required) The namespace prefix.

$base_dir

(Required) A base directory for class files in the namespace.

$prepend

(Optional) If true, prepend the base directory to the stack instead of appending it; this causes it to be searched first rather than last.

Default value: false


Return

(void)


Source

File: autoloader.php