DebugClassLoader deprecated
class DebugClassLoader
deprecated
Autoloader checking if the class is really defined in the file found.
The DebugClassLoader will wrap all registered autoloaders providing a findFile method and will throw an exception if a file is found but does not declare the class.
Methods
Constructor.
Gets the wrapped class loader.
Replaces all autoloaders implementing a findFile method by a DebugClassLoader wrapper.
Unregisters this instance as an autoloader.
Finds a file by class name.
Loads the given class or interface.
Details
at line line 38
__construct(object $classFinder)
Constructor.
at line line 48
object
getClassLoader()
Gets the wrapped class loader.
at line line 56
static
enable()
Replaces all autoloaders implementing a findFile method by a DebugClassLoader wrapper.
at line line 78
unregister()
Unregisters this instance as an autoloader.
at line line 90
string|null
findFile(string $class)
Finds a file by class name.
at line line 104
bool|null
loadClass(string $class)
Loads the given class or interface.