DebugClassLoader

DebugClassLoader

class DebugClassLoader

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.

Methods

__construct(callable $classLoader)

Constructor.

callable getClassLoader()

Gets the wrapped class loader.

static enable()

Wraps all autoloaders.

static disable()

Disables the wrapping.

bool|null loadClass(string $class)

Loads the given class or interface.

Details

__construct(callable $classLoader)

Constructor.

Parameters

callable $classLoader A class loader

callable getClassLoader()

Gets the wrapped class loader.

Return Value

callable The wrapped class loader

static enable()

Wraps all autoloaders.

static disable()

Disables the wrapping.

bool|null loadClass(string $class)

Loads the given class or interface.

Parameters

string $class The name of the class

Return Value

bool|null True, if loaded

Exceptions

RuntimeException

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Debug/DebugClassLoader.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部