Skip to content

Instantly share code, notes, and snippets.

@havvg
Created October 17, 2014 15:32
Show Gist options
  • Save havvg/ead212d5a0ec9c1d2f9a to your computer and use it in GitHub Desktop.
Save havvg/ead212d5a0ec9c1d2f9a to your computer and use it in GitHub Desktop.
TraceableEventDispatcher using service decorator
services:
event_dispatcher:
class: Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher
arguments:
- @container
traceable_event_dispatcher:
public: false
class: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher
decorates: event_dispatcher
arguments:
- @traceable_event_dispatcher.inner
- @debug.stopwatch
- @logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment