WARNING: You are browsing the documentation for Symfony 2.2 which is not maintained anymore. Consider upgrading your projects to Symfony 5.1.

Debugging a Class Loader

2.2 version
Maintained Unmaintained

Debugging a Class LoaderΒΆ

New in version 2.1: The DebugClassLoader class was added 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 wrapper.

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

use Symfony\Component\ClassLoader\DebugClassLoader;


This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.