1 Commits

Author SHA1 Message Date
as2252258 a44cfb70b1 modify mysql result 2022-04-29 16:43:54 +08:00
+4
View File
@@ -39,7 +39,11 @@ class EventDispatch extends Component implements EventDispatcherInterface
$lists = $this->eventProvider->getListenersForEvent($event);
foreach ($lists as $listener) {
/** @var Struct $list */
try {
$listener($event);
}catch (\Throwable $exception) {
$this->logger->addError($exception);
}
if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) {
break;
}