Debugging a Class LoaderEdit this page
Warning: You are browsing the documentation for Symfony 2.3, which is no longer maintained.
Read the updated version of this page for Symfony 6.3 (the current stable version).
Debugging a Class Loader
DebugClassLoader class was introduced in Symfony 2.1.
The 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 with a
DebugClassLoader is as easy as calling its static
1 2 3
use Symfony\Component\ClassLoader\DebugClassLoader; DebugClassLoader::enable();