modify mysql result

This commit is contained in:
2022-04-29 16:43:54 +08:00
parent 100ce506ea
commit a44cfb70b1
+4
View File
@@ -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;
} }