displayed the full event listener names to avoid name collisions (closes #5019)

This commit is contained in:
Fabien Potencier 2012-11-09 17:27:53 +01:00
parent 7ed728a894
commit a288521204
2 changed files with 2 additions and 2 deletions

View File

@ -448,7 +448,7 @@
{% for name, event in events %}
{% if '__section__' != name %}
{
"name": "{{ name }}",
"name": "{{ name|replace({"\\": "\\\\"}) }}",
"category": "{{ event.category }}",
"origin": {{ "%F"|format(event.origin) }},
"starttime": {{ "%F"|format(event.starttime) }},

View File

@ -241,7 +241,7 @@ class TraceableEventDispatcher implements EventDispatcherInterface, TraceableEve
$this->called[$eventName.'.'.$info['pretty']] = $info;
return $this->stopwatch->start(isset($info['class']) ? substr($info['class'], strrpos($info['class'], '\\') + 1) : $info['type'], 'event_listener');
return $this->stopwatch->start(isset($info['class']) ? $info['class'] : $info['type'], 'event_listener');
}
/**