Symfony\Component\ClassLoader\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.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class DebugClassLoader
{
- // members
- private $classFinder;
- // methods
- public void __construct()
- public static void enable()
- public void unregister()
- public string|null findFile()
- public Boolean|null loadClass()
Members
private
- $classFinder
Methods
public
- __construct() — Constructor.
- enable() — Replaces all autoloaders implementing a findFile method by a DebugClassLoader wrapper.
- findFile() — Finds a file by class name
- loadClass() — Loads the given class or interface.
- unregister() — Unregisters this instance as an autoloader.