Documentation

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

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

$darwinCache

private static mixed $darwinCache = array('/' => array('/', array()))

$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

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
throws
RuntimeException
Return values
bool|null

True, if loaded


        
On this page

Search results