File tree Expand file tree Collapse file tree 7 files changed +41
-19
lines changed Expand file tree Collapse file tree 7 files changed +41
-19
lines changed Original file line number Diff line number Diff line change 4
4
Debugging a Class Loader
5
5
========================
6
6
7
- The :class: `Symfony\\ Component\\ ClassLoader\\ DebugClassLoader ` attempts to
8
- throw more helpful exceptions when a class isn't found by the registered
9
- autoloaders. All autoloaders that implement a ``findFile() `` method are replaced
10
- with a ``DebugClassLoader `` wrapper.
11
-
12
- Using the ``DebugClassLoader `` is as easy as calling its static
13
- :method: `Symfony\\ Component\\ ClassLoader\\ DebugClassLoader::enable ` method::
14
-
15
- use Symfony\Component\ClassLoader\DebugClassLoader;
16
-
17
- DebugClassLoader::enable();
7
+ Since Symfony 2.4, the ``DebugClassLoader `` of the Class Loader component is
8
+ deprecated. Use the
9
+ :doc: `DebugClassLoader provided by the Debug component </components/debug/class_loader >`.
Original file line number Diff line number Diff line change
1
+ .. index ::
2
+ single: Class Loader; DebugClassLoader
3
+ single: Debug; DebugClassLoader
4
+
5
+ Debugging a Class Loader
6
+ ========================
7
+
8
+ .. versionadded :: 2.4
9
+ The ``DebugClassLoader `` of the Debug component is new in Symfony 2.4.
10
+ Previously, it was located in the Class Loader component.
11
+
12
+ The :class: `Symfony\\ Component\\ Debug\\ DebugClassLoader ` attempts to
13
+ throw more helpful exceptions when a class isn't found by the registered
14
+ autoloaders. All autoloaders that implement a ``findFile() `` method are replaced
15
+ with a ``DebugClassLoader `` wrapper.
16
+
17
+ Using the ``DebugClassLoader `` is as easy as calling its static
18
+ :method: `Symfony\\ Component\\ Debug\\ DebugClassLoader::enable ` method::
19
+
20
+ use Symfony\Component\ClassLoader\DebugClassLoader;
21
+
22
+ DebugClassLoader::enable();
Original file line number Diff line number Diff line change
1
+ Debug
2
+ =====
3
+
4
+ .. toctree ::
5
+ :maxdepth: 2
6
+
7
+ introduction
8
+ class_loader
Original file line number Diff line number Diff line change @@ -30,9 +30,8 @@ Enabling them all is as easy as it can get::
30
30
Debug::enable();
31
31
32
32
The :method: `Symfony\\ Component\\ Debug\\ Debug::enable ` method registers an
33
- error handler and an exception handler. If the :doc: `ClassLoader component
34
- </components/class_loader/introduction>` is available, a special class loader
35
- is also registered.
33
+ error handler, an exception handler and
34
+ :doc: `a special class loader </components/debug/class_loader >`.
36
35
37
36
Read the following sections for more information about the different available
38
37
tools.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ The Components
9
9
config/index
10
10
console/index
11
11
css_selector
12
- debug
12
+ debug/index
13
13
dependency_injection/index
14
14
dom_crawler
15
15
event_dispatcher/index
Original file line number Diff line number Diff line change 27
27
28
28
* :doc:` /components/css_selector`
29
29
30
- * ** Debug **
30
+ * :doc: ` /components/debug/index `
31
31
32
- * :doc:` /components/debug`
32
+ * :doc:` /components/debug/introduction`
33
+ * :doc:` /components/debug/class_loader`
33
34
34
35
* :doc:` /components/dependency_injection/index`
35
36
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ to `decorate`_ the kernel with additional features. Examples include:
45
45
* Configuring the autoloader or adding additional autoloading mechanisms;
46
46
* Adding HTTP level caching by wrapping the kernel with an instance of
47
47
:ref: `AppCache <symfony-gateway-cache >`;
48
- * Enabling (or skipping) the :doc: `ClassCache </cookbook/debugging >`
49
- * Enabling the :doc: `Debug component </components/debug >`.
48
+ * Enabling (or skipping) the :doc: `ClassCache </cookbook/debugging >`;
49
+ * Enabling the :doc: `Debug Component </components/debug/introduction >`.
50
50
51
51
The front controller can be chosen by requesting URLs like:
52
52
You can’t perform that action at this time.
0 commit comments