class DebugClassLoader

Autoloader checking if the class is really defined in the file found.

The ClassLoader will wrap all registered autoloaders and will throw an exception if a file is found but does not declare the class.

Methods

__construct(callable $classLoader)

No description

callable
getClassLoader()

Gets the wrapped class loader.

static 
enable()

Wraps all autoloaders.

static 
disable()

Disables the wrapping.

bool|null
loadClass(string $class)

Loads the given class or interface.

Details

at line line 37
__construct(callable $classLoader)

Parameters

callable $classLoader

at line line 71
callable getClassLoader()

Gets the wrapped class loader.

Return Value

callable The wrapped class loader

at line line 79
static enable()

Wraps all autoloaders.

at line line 105
static disable()

Disables the wrapping.

at line line 133
bool|null loadClass(string $class)

Loads the given class or interface.

Parameters

string $class The name of the class

Return Value

bool|null True, if loaded

Exceptions

RuntimeException