Debugging a Class Loader

Version: 2.6
Edit this page

Warning: You are browsing the documentation for version 2.6 which is not maintained anymore.

If some of your projects are still using this version, consider upgrading.

Debugging a Class Loader

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 wrapper.

Using the DebugClassLoader is as easy as calling its static enable() method:

1
2
3
use Symfony\Component\Debug\DebugClassLoader;

DebugClassLoader::enable();
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.