Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a44cfb70b1 |
@@ -39,7 +39,11 @@ class EventDispatch extends Component implements EventDispatcherInterface
|
|||||||
$lists = $this->eventProvider->getListenersForEvent($event);
|
$lists = $this->eventProvider->getListenersForEvent($event);
|
||||||
foreach ($lists as $listener) {
|
foreach ($lists as $listener) {
|
||||||
/** @var Struct $list */
|
/** @var Struct $list */
|
||||||
|
try {
|
||||||
$listener($event);
|
$listener($event);
|
||||||
|
}catch (\Throwable $exception) {
|
||||||
|
$this->logger->addError($exception);
|
||||||
|
}
|
||||||
if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) {
|
if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user