JLoader::registerNamespace
Register a namespace to the autoloader. When loaded, namespace paths are searched in a "last in, first out" order.
Signature
public function registerNamespace(string
$namespace,
[string
$path = false,
[boolean
$reset = false,
[boolean
$prepend = false]]] )
Parameters
-
$namespace
- A case sensitive Namespace to register.
-
$path
- A case sensitive absolute file path to the library root where classes of the given namespace can be found.
-
$reset
- True to reset the namespace with only the given lookup path.
-
$prepend
- If true, push the path to the beginning of the namespace lookup paths array.
Returns
- void
Errors/Exceptions
-
RuntimeException