Skip to content

ManagedConfigPathSynchronizer

github-actions[bot] edited this page Apr 30, 2026 · 1 revision

Synchronizes deprecated DevTools-managed GrumPHP composer metadata without leaking package paths into consumers.


  • Full name: \FastForward\DevTools\GrumPhp\ManagedConfigPathSynchronizer
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

synchronize

Removes deprecated DevTools-managed GrumPHP config-default-path entries while preserving consumer-owned values.

public synchronize(array<string,mixed> $extra, string $workingDirectory, string $managedConfigPath): array<string,mixed>

Parameters:

Parameter Type Description
$extra array<string,mixed> the composer.json extra payload
$workingDirectory string the consumer project directory
$managedConfigPath string the active packaged GrumPHP config path

Return Value:

the synchronized composer extra payload


isManagedConfigPath

Reports whether a config-default-path value is managed by DevTools.

public isManagedConfigPath(string $configDefaultPath, string $workingDirectory, string $managedConfigPath): bool

Parameters:

Parameter Type Description
$configDefaultPath string the stored composer extra path value
$workingDirectory string the consumer project directory
$managedConfigPath string the active packaged GrumPHP config path

Clone this wiki locally