Skip to content
PHP Ecosystem
Explore

Message

API reference › Scaffold › Console › Message

enumPHPForge\Scaffold\Console\Message
Uses traitsPHPForge\Scaffold\MessageTemplate
Backed bystring
Sourcesrc/Console/Message.php

Represents the message templates of the console output written by the scaffold plugin.

CaseValueDescription
COMMAND_CWD_UNRESOLVABLE'[scaffold] Unable to determine current working directory.'Error when the current working directory cannot be determined.
COMMAND_FILE_ERROR'[scaffold] "%s": %s'Error when a tracked file cannot be previewed.
COMMAND_FILE_NOT_TRACKED'[scaffold] "%s" is not tracked in scaffold-lock.json.'Error when a file is not tracked in the lock file.
COMMAND_MANIFEST_NOT_FOUND'[scaffold] No %s found in "%s" or any parent directory.'Error when no Composer manifest is found in the start directory or any of its parents.
COMMAND_PROVIDER_NOT_ALLOWED'[scaffold] "%s": provider "%s" is not in extra.scaffold.allowed-packages; ' . 'skipped.'Error when the provider of a lock entry is not in allowed-packages.
COMMAND_UNSAFE_ENTRY'[scaffold] Unsafe lock entry for "%s": %s'Error when a lock entry fails path validation.
COMMAND_WORKING_DIR_NOT_FOUND'[scaffold] Working directory "%s" does not exist.'Error when the --working-dir directory does not exist.
DIFF_CREATED_EMPTY'[scaffold] %s: would be created empty.'Notice when applying the provider would create an empty file.
DIFF_EJECTED'[scaffold] %s: ejected; scaffold does not manage it (see reapply --force).'Notice when the requested file is ejected.
DIFF_LINE_ENDINGS_ONLY'[scaffold] %s: differs only in line endings.'Notice when a file differs from the provider only in its line endings.
DIFF_MANIFEST_NOT_LOADED'[scaffold] "%s": the manifest of provider "%s" could not be loaded; skipped.'Error when the manifest of the provider of a tracked file could not be loaded.
DIFF_NO_CHANGES'[scaffold] %s: no changes.'Notice when applying the provider would not change a file.
DIFF_ORPHAN'[scaffold] %s: orphan; no allowed provider ships it anymore.'Notice when no allowed provider ships a tracked file anymore.
DIFF_PREVIEW_HEADER'[scaffold] %s (%s, %s): changes applying the provider would make%s'Header printed before the diff of a file that applying the provider would change.
DIFF_TARGET_AMBIGUOUS'[scaffold] Pass either a file or --all.'Error when neither or both of a file and --all are given.
EJECT_ALREADY_EJECTED'[scaffold] "%s" is already ejected.'Notice when the file is already ejected.
EJECT_CONFIRMATION_REQUIRED'[scaffold] Would eject "%s": it will not be managed until reapplied with ' . '--force. Run with --yes to confirm.'Notice that previews an ejection that still needs --yes.
EJECT_EJECTED'[scaffold] Ejected "%s": it will not be managed until reapplied with --force. The file was ' . 'not deleted from disk.'Notice when a file is ejected.
FRAGMENT_COMMAND'%s: 'Fragment that names the command in a summary line.
FRAGMENT_CONFLICT'conflict'Fragment that labels a conflict count.
FRAGMENT_CONFLICT_FILE'file has'Fragment that names one file with untaken provider updates.
FRAGMENT_CONFLICT_FILES'files have'Fragment that names several files with untaken provider updates.
FRAGMENT_COUNT'%d %s'Fragment that pairs a count with its label.
FRAGMENT_COUNT_UNCHANGED'%d unchanged'Fragment that counts unchanged files.
FRAGMENT_COUNT_WRITTEN'%d %s written'Fragment that counts written files.
FRAGMENT_DRY_RUN' --dry-run'Fragment that marks a dry run.
FRAGMENT_ENTRIES_LACK'entries lack'Fragment that names several lock entries without stub-hash.
FRAGMENT_ENTRY_LACKS'entry lacks'Fragment that names one lock entry without stub-hash.
FRAGMENT_ERROR'error'Fragment that labels one error.
FRAGMENT_ERRORS'errors'Fragment that labels several errors.
FRAGMENT_FILE'file'Fragment that labels one file.
FRAGMENT_FILES'files'Fragment that labels several files.
FRAGMENT_ORPHAN'orphan'Fragment that labels an orphan count.
FRAGMENT_OUTDATED'outdated'Fragment that labels an outdated count.
FRAGMENT_PARENTHESIZED' (%s)'Fragment that appends a parenthesized detail.
FRAGMENT_PRESERVE_PREVIEW' (preserve: applied only with reapply --force)'Fragment that marks the preview of an existing preserve file.
FRAGMENT_UNKNOWN_PROVIDER'?'Fragment that stands for an unknown provider.
FRAGMENT_USER_MODIFIED_PREVIEW' (user-modified: scaffold skips it; use reapply --force)'Fragment that marks the preview of a user-modified file.
FRAGMENT_WARNING'warning'Fragment that labels one warning.
FRAGMENT_WARNINGS'warnings'Fragment that labels several warnings.
FRAGMENT_WOULD_BE_WRITTEN'would be written'Fragment that labels the files a dry run would write.
FRAGMENT_WRITTEN'written'Fragment that labels the written files.
PROVIDERS_NONE'[scaffold] No providers tracked in scaffold-lock.json.'Notice when the lock file tracks no provider.
PRUNE_DELETED'[scaffold] Deleted "%s"%s.'Notice when an orphan file is deleted.
PRUNE_DIRECTORY_REMOVE_FAILED'[scaffold] Could not remove empty directory "%s".'Warning when an empty parent directory cannot be removed.
PRUNE_DRY_RUN_SUMMARY'[scaffold] prune --dry-run: %d would be removed, %d would be kept (modified), %d %s; ' . 'run with --force to apply.'Summary line of a prune dry run.
PRUNE_ENTRY_DROPPED'[scaffold] Dropped the entry of "%s" (%s).'Notice when the lock entry of a missing or unsafe orphan is dropped.
PRUNE_FILE_DELETE_FAILED'[scaffold] Could not delete "%s".'Error when an orphan file cannot be deleted.
PRUNE_KEPT'[scaffold] Kept "%s" (%s); it is yours now and no longer tracked.'Notice when a modified orphan file is kept and no longer tracked.
PRUNE_NO_ORPHANS'[scaffold] No orphaned files.'Notice when there is no orphan file.
PRUNE_SUMMARY'[scaffold] prune: %d removed, %d kept (modified), %d %s.'Summary line of a prune run.
REAPPLY_ALREADY_UP_TO_DATE'[scaffold] "%s" is already up to date.'Notice when an append or prepend file already holds the provider content.
REAPPLY_APPLIED'[scaffold] Reapplied "%s".'Notice when a file is reapplied.
REAPPLY_EJECTED'[scaffold] "%s" is ejected. Use --force to manage it again.'Warning when an ejected file is skipped.
REAPPLY_FAILED'[scaffold] Could not reapply "%s": %s Skipping.'Error when an append or prepend file cannot be reapplied.
REAPPLY_MERGE_STRATEGY_UNKNOWN'[scaffold] Unknown merge strategy "%s" for "%s"; using the default for its ' . 'name.'Warning when a lock entry records an unknown merge strategy.
REAPPLY_NO_MATCH'[scaffold] No tracked files matched the given filter.'Error when no tracked file matches the file or provider filter.
REAPPLY_ORPHANED'[scaffold] "%s" is orphaned; run "vendor/bin/scaffold prune" to review.'Warning when an orphaned file is skipped.
REAPPLY_PRESERVE'[scaffold] "%s" uses mode "preserve". Use --force to overwrite.'Warning when an existing preserve file is skipped.
REAPPLY_STUB_NOT_FOUND'[scaffold] Stub not found: "%s". Skipping.'Error when the provider stub of a file does not exist.
REAPPLY_SUMMARY'[scaffold] reapply%s: %d %s, %d unchanged, %d skipped%s, %d %s.'Summary line of a reapply run.
REAPPLY_UNSAFE_ENTRY'[scaffold] Unsafe lock entry for "%s": %s Skipping.'Error when a lock entry fails path validation and is skipped.
REAPPLY_USER_MODIFIED'[scaffold] "%s" is user-modified. Use --force to overwrite.'Warning when a user-modified file is skipped.
SCAFFOLD_ADOPTED_SKIPPED'[scaffold] User-modified file skipped: "%s".'Warning when an adopted replace file is skipped.
SCAFFOLD_ALLOWED_ENTRY_IGNORED'[scaffold] Non-string entry in allowed-packages ignored.'Warning when a non-string allowed-packages entry is ignored.
SCAFFOLD_APPLY_FAILED'[scaffold] Error applying "%s": %s'Error when a file mapping fails to apply.
SCAFFOLD_AUTO_DISABLED'[scaffold] Auto-scaffold disabled via "extra.scaffold.auto"; run ' . '"vendor/bin/scaffold" manually.'Notice when extra.scaffold.auto disables the Composer hooks.
SCAFFOLD_CONFIG_MISSING'[scaffold] No extra.scaffold configuration found. Skipping scaffold.'Notice when the root package has no extra.scaffold configuration.
SCAFFOLD_CONFLICTS'[scaffold] %d %s provider updates you have not taken (conflict); run ' . '"vendor/bin/scaffold diff --all".'Warning when user-modified files skip provider updates.
SCAFFOLD_NO_ALLOWED_PACKAGES'[scaffold] No allowed-packages configured. Skipping scaffold.'Notice when allowed-packages is empty or missing.
SCAFFOLD_ORPHAN_ENTRY'[scaffold] %s (%s)'Line that lists one orphaned file with its provider.
SCAFFOLD_ORPHAN_HEADER'[scaffold] %d orphaned %s no allowed provider ships anymore; run ' . '"vendor/bin/scaffold prune" to review.'Warning that announces the orphaned files with the prune hint.
SCAFFOLD_ORPHAN_MORE'[scaffold] ... and %d more'Line that counts the orphaned files left out of the list.
SCAFFOLD_OVERRIDE'[scaffold] "%s" from "%s" overrides "%s" (last provider in allowed-packages wins).'Notice when a later provider overrides the destination of an earlier one.
SCAFFOLD_PERMISSIONS_COPY_FAILED'Could not copy permissions from "%s" to "%s".'Warning when the source permissions cannot be copied onto the destination.
SCAFFOLD_PREFIXED'[scaffold] %s'Line that prefixes a message with [scaffold].
SCAFFOLD_PROVIDER_INSTALL_PATH_MISSING'[scaffold] Provider "%s" has no install path (metapackage); ' . 'skipping.'Warning when an allowed provider has no install path.
SCAFFOLD_PROVIDER_MAPPINGS_EMPTY'[scaffold] Provider "%s" produced no file mappings; check its copy[] ' . 'entries and excludes.'Warning when a provider manifest produces no file mapping.
SCAFFOLD_PROVIDER_NOT_INSTALLED'[scaffold] Provider "%s" is allowed but not installed; check ' . 'extra.scaffold.allowed-packages or require it.'Warning when an allowed provider is not installed.
SCAFFOLD_PROVIDER_ROOT_OUTSIDE_VENDOR'[scaffold] Provider root for "%s" resolves outside vendor dir; using ' . 'default path.'Warning when the recorded provider root resolves outside the vendor directory.
SCAFFOLD_SUMMARY'[scaffold] %s%s.'Summary line of a scaffold run.
SCAFFOLD_UNTRACKED_OVERWRITTEN'Overwrote untracked existing file "%1$s"; review it with git diff or run ' . '"scaffold eject %1$s --yes" to keep your version.'Warning when an untracked existing file is overwritten.
SCAFFOLD_USER_MODIFIED_SKIPPED'User-modified file skipped: "%s".'Warning when a user-modified replace file is skipped.
SCAFFOLD_VENDOR_DIR_UNRESOLVABLE'[scaffold] Unable to resolve vendor-dir from Composer config; aborting ' . 'scaffold.'Error when the vendor directory cannot be resolved from the Composer configuration.
STATUS_FORMAT_UNKNOWN'[scaffold] Unknown format "%s"; use "table" or "json".'Error when --format is neither table nor json.
STATUS_NO_FILES'[scaffold] No files tracked in scaffold-lock.json.'Notice when the lock file tracks no file.
STATUS_PROVIDER_DRIFT'[scaffold] %s: lock %s, installed %s (run composer install).'Warning when the locked provider version differs from the installed one.
STATUS_STUB_HASH_MISSING'[scaffold] %d %s stub-hash; run composer install to refresh.'Notice when lock entries lack stub-hash.
STATUS_SUMMARY'[scaffold] %d %s: %s.'Summary line of the status table.
SYNC_ABORTED'[scaffold] Sync aborted: %s'Error when a sync run aborts.
SYNC_DRY_RUN_SUMMARY'[scaffold] sync --dry-run: %d %s would change, %d unchanged, %d orphan, %d %s.'Summary line of a sync dry run.
SYNC_NO_ALLOWED_PACKAGES'[scaffold] No allowed-packages configured. Nothing to sync.'Notice when allowed-packages is empty or missing.