|
5 | 5 | The Traceable Event Dispatcher |
6 | 6 | ============================== |
7 | 7 |
|
8 | | -The:class:`Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher` |
| 8 | +..versionadded::2.5 |
| 9 | + The ``TraceableEventDispatcher`` class was moved to the EventDispatcher |
| 10 | + component in Symfony 2.5. Before, it was located in the HttpKernel component. |
| 11 | + |
| 12 | +The:class:`Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher` |
9 | 13 | is an event dispatcher that wraps any other event dispatcher and can then |
10 | 14 | be used to determine which event listeners have been called by the dispatcher. |
11 | 15 | Pass the event dispatcher to be wrapped and an instance of the |
12 | 16 | :class:`Symfony\\Component\\Stopwatch\\Stopwatch` to its constructor:: |
13 | 17 |
|
14 | | - use Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher; |
| 18 | + use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher; |
15 | 19 | use Symfony\Component\Stopwatch\Stopwatch; |
16 | 20 |
|
17 | 21 | // the event dispatcher to debug |
|