Documentation

DynamicClassLoader extends ClassLoader

Table of Contents

addPath()  : void
Adds a path to the lookup list
register()  : bool
Attaches the ClassLoader to the PHP runtime

Methods

addPath()

Adds a path to the lookup list

public addPath(string $namespacePrefix, string $path[, bool $prepend = false ]) : void
Parameters
$namespacePrefix : string

An empty string, or string ending with a backslash

$path : string
$prepend : bool = false
Return values
void

register()

Attaches the ClassLoader to the PHP runtime

public register([bool $prepend = false ]) : bool
Parameters
$prepend : bool = false
Return values
bool

Search results