Permalink
Browse files

minor #3931 [Component][EventDispatcher] 2.5 specific documentation f…

…or the TraceableEventDispatcher (xabbuh)

This PR was merged into the 2.5 branch.

Discussion
----------

[Component][EventDispatcher] 2.5 specific documentation for the TraceableEventDispatcher

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | 2.5+
| Fixed tickets | #3879

Commits
-------

cf667c9 update the TraceableEventDispatcher to reflect its movement to the EventDispatcher component in Symfony 2.5
  • Loading branch information...
weaverryan committed Jun 11, 2014
2 parents 46b21bd + cf667c9 commit 0c2a9b3c033666fd87feaf21ce23a92178e0c802
Showing with 6 additions and 2 deletions.
  1. +6 −2 components/event_dispatcher/traceable_dispatcher.rst
@@ -5,13 +5,17 @@
The Traceable Event Dispatcher
==============================
The :class:`Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher`
.. versionadded:: 2.5
The ``TraceableEventDispatcher`` class was moved to the EventDispatcher
component in Symfony 2.5. Before, it was located in the HttpKernel component.
The :class:`Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher`
is an event dispatcher that wraps any other event dispatcher and can then
be used to determine which event listeners have been called by the dispatcher.
Pass the event dispatcher to be wrapped and an instance of the
:class:`Symfony\\Component\\Stopwatch\\Stopwatch` to its constructor::
use Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher;
use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher;
use Symfony\Component\Stopwatch\Stopwatch;
// the event dispatcher to debug

0 comments on commit 0c2a9b3

Please sign in to comment.