Skip to content

Commit

Permalink
minor #4947 [Components][ClassLoader] remove DebugClassLoader (xabbuh)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.5 branch but it was merged into the 2.6 branch instead (closes #4947).

Discussion
----------

[Components][ClassLoader] remove DebugClassLoader

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | no
| Applies to    | 2.5
| Fixed tickets |

The `DebugClassLoader` has been moved to the Debug component with
Symfony 2.4 and will be removed in 3.0 (see symfony/symfony#13203).

This replaced #4855 by removing the `DebugClassLoader` docs from ClassLoader component in the 2.5 version, but keeping a redirect to the description in the Debug component. The redirection map entry should then be removed once the changes got merged up into the `master` branch.

Commits
-------

73e9833 [Components][ClassLoader] remove DebugClassLoader
  • Loading branch information
weaverryan committed Jun 9, 2015
2 parents 7dd5e29 + 73e9833 commit 179526c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
3 changes: 1 addition & 2 deletions components/class_loader/class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ load all of your project's classes.

You can use both the ``ApcClassLoader`` and the ``XcacheClassLoader`` to
:doc:`cache </components/class_loader/cache_class_loader>` a ``ClassLoader``
instance or the ``DebugClassLoader`` to :doc:`debug </components/class_loader/debug_class_loader>`
it.
instance.

Usage
-----
Expand Down
3 changes: 0 additions & 3 deletions components/class_loader/debug_class_loader.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
.. index::
single: ClassLoader; DebugClassLoader

Debugging a Class Loader
========================

Expand Down
6 changes: 5 additions & 1 deletion components/class_loader/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ ClassLoader
psr4_class_loader
map_class_loader
cache_class_loader
debug_class_loader
class_map_generator

.. toctree::
:hidden:

debug_class_loader
14 changes: 8 additions & 6 deletions components/class_loader/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ the class. Symfony provides three autoloaders, which are able to load your class
* :doc:`/components/class_loader/map_class_loader`: loads classes using
a static map from class name to file path.

Additionally, the Symfony ClassLoader component ships with a set of wrapper
classes which can be used to add additional functionality on top of existing
autoloaders:

* :doc:`/components/class_loader/cache_class_loader`
* :doc:`/components/class_loader/debug_class_loader`
Additionally, the Symfony ClassLoader component ships with a wrapper class
which makes it possible
:doc:`to cache the results of a class loader </components/class_loader/cache_class_loader>`.

When using the :doc:`Debug component </components/debug/introduction>`, you
can also use a special :doc:`DebugClassLoader </components/debug/class_loader>`
that eases debugging by throwing more helpful exceptions when a class could
not be found by a class loader.

Installation
------------
Expand Down
1 change: 0 additions & 1 deletion components/map.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* :doc:`/components/class_loader/psr4_class_loader`
* :doc:`/components/class_loader/map_class_loader`
* :doc:`/components/class_loader/cache_class_loader`
* :doc:`/components/class_loader/debug_class_loader`
* :doc:`/components/class_loader/class_map_generator`

* :doc:`/components/config/index`
Expand Down

0 comments on commit 179526c

Please sign in to comment.