Warning: You are browsing the documentation for Symfony 2.2, which is no longer maintained.
Read the updated version of this page for Symfony 5.3 (the current stable version).
Debugging a Class Loader
Debugging a Class Loader¶
New in version 2.1: The
DebugClassLoader class was added in Symfony 2.1.
Symfony\Component\ClassLoader\DebugClassLoader attempts to
throw more helpful exceptions when a class isn’t found by the registered
autoloaders. All autoloaders that implement a
findFile() method are replaced
DebugClassLoader is as easy as calling its static
use Symfony\Component\ClassLoader\DebugClassLoader; DebugClassLoader::enable();
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.