DebugClassLoader
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)
Constructor.
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 39
__construct(callable $classLoader)
Constructor.
at line line 54
callable
getClassLoader()
Gets the wrapped class loader.
at line line 62
static
enable()
Wraps all autoloaders.
at line line 88
static
disable()
Disables the wrapping.
at line line 116
bool|null
loadClass(string $class)
Loads the given class or interface.