This commit is contained in:
2021-08-03 10:59:18 +08:00
parent a32d321f27
commit cb056899e6
+3 -3
View File
@@ -66,9 +66,9 @@ class ServerWorker extends \Server\Abstracts\Server
$di = Snowflake::getDi(); $di = Snowflake::getDi();
foreach ($fileLists as $file => $class) { foreach ($fileLists as $file => $class) {
if (Snowflake::isTask() && str_contains($file, CONTROLLER_PATH)) { // if (Snowflake::isTask() && str_contains($file, CONTROLLER_PATH)) {
continue; // continue;
} // }
$instance = $di->get($class); $instance = $di->get($class);
$methods = $di->getMethodAttribute($class); $methods = $di->getMethodAttribute($class);
foreach ($methods as $method => $attribute) { foreach ($methods as $method => $attribute) {