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
- $annotatedParameters : mixed
- $caseCheck : mixed
- $checkedClasses : mixed
- $classLoader : mixed
- $darwinCache : mixed
- $deprecated : mixed
- $final : mixed
- $finalMethods : mixed
- $internal : mixed
- $internalMethods : mixed
- $isFinder : mixed
- $loaded : mixed
- $method : mixed
- __construct() : mixed
- checkAnnotations() : mixed
- checkCase() : array<string|int, mixed>|null
- disable() : mixed
- Disables the wrapping.
- enable() : mixed
- Wraps all autoloaders.
- findFile() : string|null
- getClassLoader() : callable
- Gets the wrapped class loader.
- loadClass() : mixed
- Loads the given class or interface.
- checkClass() : mixed
- darwinRealpath() : string
- `realpath` on MacOSX doesn't normalize the case of characters.
- getOwnInterfaces() : array<string|int, string>
- `class_implements` includes interfaces from the parents so we have to manually exclude them.
Properties
$annotatedParameters
private
static mixed
$annotatedParameters
= []
$caseCheck
private
static mixed
$caseCheck
$checkedClasses
private
static mixed
$checkedClasses
= []
$classLoader
private
mixed
$classLoader
$darwinCache
private
static mixed
$darwinCache
= ['/' => ['/', []]]
$deprecated
private
static mixed
$deprecated
= []
$final
private
static mixed
$final
= []
$finalMethods
private
static mixed
$finalMethods
= []
$internal
private
static mixed
$internal
= []
$internalMethods
private
static mixed
$internalMethods
= []
$isFinder
private
mixed
$isFinder
$loaded
private
mixed
$loaded
= []
$method
private
static mixed
$method
= []
Methods
__construct()
public
__construct(callable $classLoader) : mixed
Parameters
- $classLoader : callable
Return values
mixed —checkAnnotations()
public
checkAnnotations(ReflectionClass $refl, mixed $class) : mixed
Parameters
- $refl : ReflectionClass
- $class : mixed
Return values
mixed —checkCase()
public
checkCase(ReflectionClass $refl, string $file, string $class) : array<string|int, mixed>|null
Parameters
- $refl : ReflectionClass
- $file : string
- $class : string
Return values
array<string|int, mixed>|null —disable()
Disables the wrapping.
public
static disable() : mixed
Return values
mixed —enable()
Wraps all autoloaders.
public
static enable() : mixed
Return values
mixed —findFile()
public
findFile(mixed $class) : string|null
Parameters
- $class : mixed
Return values
string|null —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) : mixed
Parameters
- $class : string
-
The name of the class
Tags
Return values
mixed —checkClass()
private
checkClass(string $class[, string $file = null ]) : mixed
Parameters
- $class : string
- $file : string = null
Return values
mixed —darwinRealpath()
`realpath` on MacOSX doesn't normalize the case of characters.
private
darwinRealpath(string $real) : string
Parameters
- $real : string
Return values
string —getOwnInterfaces()
`class_implements` includes interfaces from the parents so we have to manually exclude them.
private
getOwnInterfaces(string $class, string|null $parent) : array<string|int, string>
Parameters
- $class : string
- $parent : string|null