-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #3039 use DebugClassLoader class from Debug component instead of …
…the one from ... (xabbuh) This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes #3039). Discussion ---------- use DebugClassLoader class from Debug component instead of the one from ... ...the Class Loader component | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.4 | Fixed tickets | #2955 Commits ------- e78c1ca use DebugClassLoader class from Debug component instead of the one from the Class Loader component
- Loading branch information
Showing
7 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. index:: | ||
single: Class Loader; DebugClassLoader | ||
single: Debug; DebugClassLoader | ||
|
||
Debugging a Class Loader | ||
======================== | ||
|
||
.. versionadded:: 2.4 | ||
The ``DebugClassLoader`` of the Debug component is new in Symfony 2.4. | ||
Previously, it was located in the Class Loader component. | ||
|
||
The :class:`Symfony\\Component\\Debug\\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 | ||
:method:`Symfony\\Component\\Debug\\DebugClassLoader::enable` method:: | ||
|
||
use Symfony\Component\ClassLoader\DebugClassLoader; | ||
|
||
DebugClassLoader::enable(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Debug | ||
===== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
introduction | ||
class_loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters