class DebugClassLoader
Autoloader checking if the class is really defined in the file found.
The DebugClassLoader will wrap all registered autoloaders providing a findFile method and will throw an exception if a file is found but does not declare the class.
__construct(object $classFinder) Constructor. | ||
object | getClassLoader() Gets the wrapped class loader. | |
static | enable() Replaces all autoloaders implementing a findFile method by a DebugClassLoader wrapper. | |
unregister() Unregisters this instance as an autoloader. | ||
string|null | findFile(string $class) Finds a file by class name. | |
bool|null | loadClass(string $class) Loads the given class or interface. |
Constructor.
Gets the wrapped class loader.
Replaces all autoloaders implementing a findFile method by a DebugClassLoader wrapper.
Unregisters this instance as an autoloader.
Finds a file by class name.
Loads the given class or interface.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/ClassLoader/DebugClassLoader.html