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.
| __construct(callable $classLoader) | ||
| callable | getClassLoader() Gets the wrapped class loader. | |
| static | enable() Wraps all autoloaders. | |
| static | disable() Disables the wrapping. | |
| loadClass(string $class) Loads the given class or interface. | ||
| checkAnnotations(ReflectionClass $refl, $class) | ||
| checkCase(ReflectionClass $refl, $file, $class) |
| callable | $classLoader |
Gets the wrapped class loader.
| callable | The wrapped class loader |
Wraps all autoloaders.
Disables the wrapping.
Loads the given class or interface.
| string | $class | The name of the class |
| RuntimeException |
| ReflectionClass | $refl | |
| $class |
| ReflectionClass | $refl | |
| $file | ||
| $class |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Debug/DebugClassLoader.html