Skip to content
PHP Ecosystem
Explore

PHPForge\Scaffold\Services

API reference › Scaffold › Services

ClassSummary
ApplyPreview final readonlyRepresents the content a destination has now and the content it would have after applying its provider mapping.
ApplyPreviewer final readonlyComputes in memory what applying a provider mapping would write to its destination, without touching the disk.
DiffService finalRenders Git-compatible unified diffs of what applying the provider would change in tracked files.
EjectService finalMarks a file entry as ejected in scaffold-lock.json so scaffold stops writing it; the file stays on disk.
ProvidersService finalLists scaffold providers recorded in scaffold-lock.json with their file counts.
PruneService finalReports the orphaned entries of scaffold-lock.json and, when forced, removes them from the lock and deletes the orphaned files that hold only provider content.
ReapplyService finalRewrites tracked files from their provider stubs; without force it merges append and prepend files and skips ejected, adopted, user-modified and existing preserve files; it always skips orphaned files.
ReapplySummary finalCounts the outcomes of a reapply run and formats its summary line.
StatusService finalReports the state of each file tracked in scaffold-lock.json against the disk and the current provider stubs, and the provider files not tracked yet as pending.
SyncService finalApplies the allowed and installed providers to the project from the command line, with the same rules as a Composer install or update, or previews what applying them would change.
EnumSummary
FileStatusRepresents the state of a scaffold file, tracked in scaffold-lock.json or pending, as reported by the status command.