|
|
|
@ -71,6 +71,9 @@ class ApiDocService
|
|
|
|
|
$apiList = []; |
|
|
|
|
|
|
|
|
|
foreach ($paths as ['path' => $path, 'namespace' => $namespace, 'namespace_root' => $namespaceRoot, ]) { |
|
|
|
|
$namespaceRoot = strtr(strtr($namespaceRoot, ['\\' => '/']), ['/' => DIRECTORY_SEPARATOR]); |
|
|
|
|
$path = strtr(strtr($path, ['\\' => '/']), ['/' => DIRECTORY_SEPARATOR]); |
|
|
|
|
|
|
|
|
|
$MPaths = $this->getPaths($path); |
|
|
|
|
|
|
|
|
|
foreach ($MPaths as $MPath) { |
|
|
|
@ -82,6 +85,7 @@ class ApiDocService
|
|
|
|
|
} |
|
|
|
|
$classFullName = implode("\\", [$namespace, ...explode(DIRECTORY_SEPARATOR, strtr(dirname($eachFile->filepath), [$namespaceRoot => ''])), $classname]); |
|
|
|
|
$classFullName = preg_replace('/\\\+/', '\\', $classFullName); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
if (!class_exists($classFullName)) { |
|
|
|
|
return; |
|
|
|
|