Commit a388a242 authored by lussoluca's avatar lussoluca

Extend ContainerAwareEventDispatcher to better trace events dispatched

parent 7867d2bb
......@@ -163,7 +163,7 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements
// Remove this listener from the $notCalledListeners array.
if (!$this->notCalledListeners) {
$this->notCalledListeners = $this->clone($this->listeners);
$this->notCalledListeners = $this->cloneListeners($this->listeners);
}
foreach ($this->notCalledListeners[$event_name][$priority] as $key => $listener) {
......@@ -178,7 +178,7 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements
*
* @return array
*/
private function clone($listeners) {
private function cloneListeners($listeners) {
$clone = [];
foreach ($listeners as $eventName => $events) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment