Notes
Component Notes
Content of the notes (1)
Page 1
Debugging a Class Loader
The DebugClassLoader class was introduced in Symfony 2.1, depracated in Symfony 2.5 and will be removed in Symfony 3.0 .
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;
DebugClassLoader::enable();
Information
- Description
- Notes on Symfony Components
- Created by
- Alexandra Negrea · May 2015
- Updated
- Feb 19, 2016
- Views
- 65
- Tags
- Rating