[EventDispatcher] cleanup
This commit is contained in:
parent
4f94b1769b
commit
19134c0554
@ -290,10 +290,6 @@ class TraceableEventDispatcher implements TraceableEventDispatcherInterface
|
|||||||
if (null !== $this->logger) {
|
if (null !== $this->logger) {
|
||||||
$this->logger->debug('Notified event "{event}" to listener "{listener}".', $context);
|
$this->logger->debug('Notified event "{event}" to listener "{listener}".', $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($this->called[$eventName])) {
|
|
||||||
$this->called[$eventName] = new \SplObjectStorage();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$this->callStack->detach($listener);
|
$this->callStack->detach($listener);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user