symfony/symfony — pull request #8596 by bronze1man (2013-07-29 04:32:51+00:00)
Title: [2.3] [HttpKernel] TraceableEventDispatcher loses event priorities try to fix #8426

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #8426
| License | MIT
| Doc PR | n/a

### I found four options:

* Use `ReflectionProperty` to get the priority parameter of a listener from `EventDispatcher`
* Get the priority parameter of a listener from `\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher::addListener`
* Do not wrap a `EventDispatcherInterface`, reimplement one.
* Do not wrap a `EventDispatcherInterface`, extend one to access the priority parameter of a listener .
* Add PriorityAwareEventDispatcherInterface on EventDispatcher.

### This PR try first option.