This commit is contained in:
2020-10-28 16:38:05 +08:00
parent d028da2dd0
commit 27aad767a2
2 changed files with 8 additions and 12 deletions
+3 -2
View File
@@ -14,9 +14,9 @@ use Snowflake\Core\ArrayAccess;
class Event extends BaseObject
{
public $isVide = true;
public bool $isVide = true;
private $_events = [];
private array $_events = [];
const EVENT_ERROR = 'WORKER:ERROR';
const EVENT_STOP = 'WORKER:STOP';
@@ -191,6 +191,7 @@ class Event extends BaseObject
return $result;
}
foreach ($this->_events[$name] as $event) {
var_dump($event);
[$handler, $defaultParameter] = $event;
try {
if (!empty($parameter)) {