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());
|
return array_map(fn($attr) => $attr->getName(), $reflect->getAttributes());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStats(): array
|
public function getStats(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'total_files' => count($this->files),
|
'total_files' => count($this->files),
|
||||||
'cached_mtimes' => count($this->fileMtimes),
|
'cached_mtimes' => count($this->fileMtimes),
|
||||||
'base_path' => $this->basePath,
|
'base_path' => $this->basePath,
|
||||||
'config' => $this->config,
|
'config' => $this->config,
|
||||||
'manifest_entries' => count($this->manifest->all()),
|
'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
|
public function reset(): void
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user