DebugClassLoader
in package
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.
Tags
Table of Contents
Properties
- $caseCheck : mixed
- $classLoader : mixed
- $darwinCache : mixed
- $deprecated : mixed
- $final : mixed
- $finalMethods : mixed
- $isFinder : mixed
- $php7Reserved : mixed
Methods
- __construct() : mixed
- Constructor.
- disable() : mixed
- Disables the wrapping.
- enable() : mixed
- Wraps all autoloaders.
- getClassLoader() : callable
- Gets the wrapped class loader.
- loadClass() : bool|null
- Loads the given class or interface.
Properties
$caseCheck
private
static mixed
$caseCheck
$classLoader
private
mixed
$classLoader
$darwinCache
private
static mixed
$darwinCache
= array('/' => array('/', array()))
$deprecated
private
static mixed
$deprecated
= array()
$final
private
static mixed
$final
= array()
$finalMethods
private
static mixed
$finalMethods
= array()
$isFinder
private
mixed
$isFinder
$php7Reserved
private
static mixed
$php7Reserved
= array('int', 'float', 'bool', 'string', 'true', 'false', 'null')
Methods
__construct()
Constructor.
public
__construct(callable $classLoader) : mixed
Parameters
- $classLoader : callable
-
A class loader
disable()
Disables the wrapping.
public
static disable() : mixed
enable()
Wraps all autoloaders.
public
static enable() : mixed
getClassLoader()
Gets the wrapped class loader.
public
getClassLoader() : callable
Return values
callable —The wrapped class loader
loadClass()
Loads the given class or interface.
public
loadClass(string $class) : bool|null
Parameters
- $class : string
-
The name of the class
Tags
Return values
bool|null —True, if loaded