eee
This commit is contained in:
+20
-10
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user