Psr4ClassLoader
in package
A PSR-4 compatible class loader.
See http://www.php-fig.org/psr/psr-4/
Tags
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
$prefixes
private
mixed
$prefixes
= []
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