This commit is contained in:
2020-09-18 21:09:36 +08:00
parent a762e67dab
commit 6e6c9af887
2 changed files with 31 additions and 22 deletions
+3
View File
@@ -70,6 +70,9 @@ class Event extends BaseObject
}
$callback[0] = Snowflake::createObject($callback[0]);
}
if ($this->exists($name, $callback)) {
return;
}
if (!empty($this->_events[$name]) && $isAppend === true) {
array_unshift($this->_events[$name], [$callback, $parameter]);
} else {