Update extend/service/NodeService.php

This commit is contained in:
Anyon 2018-10-31 09:54:47 +08:00
parent 1e8e3798aa
commit 71ab008f05

View File

@ -124,11 +124,9 @@ class NodeService
continue;
}
$className = env('app_namespace') . str_replace('/', '\\', $matches[0]);
if (!class_exists($className)) {
continue;
}
if (!class_exists($className)) continue;
foreach (get_class_methods($className) as $funcName) {
if (strpos($funcName, '_') !== 0 && $funcName !== 'initialize') {
if (strpos($funcName, '_') !== 0 && $funcName !== 'initialize' && $funcName !== 'registerMiddleware') {
$nodes[] = self::parseNodeStr("{$matches[1]}/{$matches[2]}") . '/' . strtolower($funcName);
}
}