Skip to content
PHP Ecosystem
Explore

FileMode

API reference › Scaffold › Manifest › FileMode

enumPHPForge\Scaffold\Manifest\FileMode
Backed bystring
Sourcesrc/Manifest/FileMode.php

Represents the write modes that a provider manifest assigns to destinations.

CaseValueDescription
Append'append'Merges the provider entries missing from the destination on every run, creating the destination when missing.
Prepend'prepend'Prepends the provider block on every run unless the destination already contains it.
Preserve'preserve'Writes the destination only when it is missing; only reapply --force overwrites an existing file.
Replace'replace'Overwrites the destination unless it changed since its recorded hash or was adopted from an existing file.