This commit is contained in:
2026-06-24 20:45:36 +08:00
parent b7712d3d9d
commit 81250722ea
+20 -10
View File
@@ -466,16 +466,26 @@ class Scanner extends Component
return array_map(fn($attr) => $attr->getName(), $reflect->getAttributes());
}
public function getStats(): array
{
return [
'total_files' => count($this->files),
'cached_mtimes' => count($this->fileMtimes),
'base_path' => $this->basePath,
'config' => $this->config,
'manifest_entries' => count($this->manifest->all()),
];
}
public function getStats(): array
{
return [
'total_files' => count($this->files),
'cached_mtimes' => count($this->fileMtimes),
'base_path' => $this->basePath,
'config' => $this->config,
'manifest_entries' => count($this->manifest->all()),
];
}
/**
* 返回 Master 扫描产生的完整清单数据,供 Worker 轻量重建注解路由
* @return array{string: array{mtime: int, classes: string[]}}
*/
public function getManifestClasses(): array
{
return $this->manifest->all();
}
public function reset(): void
{