FileAccess Orion

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
author

Fabien Potencier fabien@symfony.com

author

Christophe Coevoet stof@notk.org

author

Nicolas Grekas p@tchwork.com

author

Guilhem Niot guilhem.niot@gmail.com

deprecated

since Symfony 4.4, use Symfony\Component\ErrorHandler\DebugClassLoader instead.

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

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
throws
RuntimeException
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
Return values
array<string|int, string>

Search results