Add scanner manifest replay control

This commit is contained in:
2026-07-10 17:03:41 +08:00
parent 2753a42d82
commit 689fd09358
+2 -2
View File
@@ -89,7 +89,7 @@ class Scanner extends Component
return $this->changeSet;
}
public function scanFiles(array $files, ?string $scopePath = null, ?string $cacheFile = null, bool $force = false): ChangeSet
public function scanFiles(array $files, ?string $scopePath = null, ?string $cacheFile = null, bool $force = false, bool $replayManifest = true): ChangeSet
{
$this->changeSet = new ChangeSet();
$this->visitedFiles = [];
@@ -115,7 +115,7 @@ class Scanner extends Component
$this->markRemovedFile($path);
}
if ($cacheLoaded && $scopePath !== null) {
if ($replayManifest && $cacheLoaded && $scopePath !== null) {
$this->replayManifest($scopePath, $this->changeSet->getChangedFiles());
}