Add scanner manifest replay control
This commit is contained in:
+2
-2
@@ -89,7 +89,7 @@ class Scanner extends Component
|
|||||||
return $this->changeSet;
|
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->changeSet = new ChangeSet();
|
||||||
$this->visitedFiles = [];
|
$this->visitedFiles = [];
|
||||||
@@ -115,7 +115,7 @@ class Scanner extends Component
|
|||||||
$this->markRemovedFile($path);
|
$this->markRemovedFile($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cacheLoaded && $scopePath !== null) {
|
if ($replayManifest && $cacheLoaded && $scopePath !== null) {
|
||||||
$this->replayManifest($scopePath, $this->changeSet->getChangedFiles());
|
$this->replayManifest($scopePath, $this->changeSet->getChangedFiles());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user