Documentation

Psr4ClassLoader
in package

A PSR-4 compatible class loader.

See http://www.php-fig.org/psr/psr-4/

Tags
author

Alexander M. Turek me@derrabus.de

deprecated

since version 3.3, to be removed in 4.0.

Table of Contents

$prefixes  : mixed
addPrefix()  : mixed
findFile()  : string|null
loadClass()  : bool
register()  : mixed
Registers this instance as an autoloader.
unregister()  : mixed
Removes this instance from the registered autoloaders.

Properties

Methods

addPrefix()

public addPrefix(string $prefix, string $baseDir) : mixed
Parameters
$prefix : string
$baseDir : string
Return values
mixed

findFile()

public findFile(string $class) : string|null
Parameters
$class : string
Return values
string|null

loadClass()

public loadClass(string $class) : bool
Parameters
$class : string
Return values
bool

register()

Registers this instance as an autoloader.

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

unregister()

Removes this instance from the registered autoloaders.

public unregister() : mixed
Return values
mixed

Search results