displayed the full event listener names to avoid name collisions (closes #5019)
This commit is contained in:
parent
7ed728a894
commit
a288521204
@ -448,7 +448,7 @@
|
|||||||
{% for name, event in events %}
|
{% for name, event in events %}
|
||||||
{% if '__section__' != name %}
|
{% if '__section__' != name %}
|
||||||
{
|
{
|
||||||
"name": "{{ name }}",
|
"name": "{{ name|replace({"\\": "\\\\"}) }}",
|
||||||
"category": "{{ event.category }}",
|
"category": "{{ event.category }}",
|
||||||
"origin": {{ "%F"|format(event.origin) }},
|
"origin": {{ "%F"|format(event.origin) }},
|
||||||
"starttime": {{ "%F"|format(event.starttime) }},
|
"starttime": {{ "%F"|format(event.starttime) }},
|
||||||
|
@ -241,7 +241,7 @@ class TraceableEventDispatcher implements EventDispatcherInterface, TraceableEve
|
|||||||
|
|
||||||
$this->called[$eventName.'.'.$info['pretty']] = $info;
|
$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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user