This commit is contained in:
as2252258@163.com
2021-08-29 05:53:47 +08:00
parent 1cb1b0b9cb
commit c06f25fcf5
16 changed files with 152 additions and 205 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ class OnWorkerStart implements EventDispatcherInterface
$di = Kiri::getDi();
foreach ($fileLists as $class) {
foreach ($di->getTargetNote($class) as $value) {
$value['class']::execute((object)$value['params'], $class);
$value->execute($class);
}
$methods = $di->getMethodAttribute($class);
foreach ($methods as $method => $attribute) {
@@ -89,7 +89,7 @@ class OnWorkerStart implements EventDispatcherInterface
continue;
}
foreach ($attribute as $item) {
$item['class']::execute((object)$item['params'], $class, $method);
$item->execute($class, $method);
}
}
}