ManagedConfigPathSynchronizer
Synchronizes deprecated DevTools-managed GrumPHP composer metadata without leaking package paths into consumers.
Constants
Methods
Reports whether a config-default-path value is managed by DevTools.
Removes deprecated DevTools-managed GrumPHP config-default-path entries while preserving consumer-owned values.
Normalizes a path for stable comparisons across platforms.
Reports whether a config-default-path value is managed by DevTools.
public
isManagedConfigPath(
string
$configDefaultPath,
string
$workingDirectory,
string
$managedConfigPath) : bool
Parameters
$configDefaultPath
:
string
Description
the stored composer extra path value
$workingDirectory
:
string
Description
the consumer project directory
$managedConfigPath
:
string
Description
the active packaged GrumPHP config path
Return values
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
$extra
:
array<string, mixed>
Description
the composer.json extra payload
$workingDirectory
:
string
Description
the consumer project directory
$managedConfigPath
:
string
Description
the active packaged GrumPHP config path
Return values
Description
the synchronized composer extra payload
Normalizes a path for stable comparisons across platforms.
private
normalize(
string
$path) : string
Parameters
$path
:
string
Description
the path to normalize