Resolves DevTools freshness through Composer metadata without coupling callers to Composer commands.
Interfaces
Checks whether the installed DevTools package is behind the latest stable release.
Constants
Properties
Methods
Returns version information when it can be resolved without blocking command execution.
Returns the installed DevTools version without running external Composer commands.
Resolves the latest stable DevTools version available to Composer.
private
ProcessBuilderInterface
$processBuilder
public
__construct(ProcessBuilderInterface
$processBuilder) : mixed
Parameters
Description
the process builder used to query Composer metadata
Returns version information when it can be resolved without blocking command execution.
public
check() : VersionCheckResult|null
Return values
Returns the installed DevTools version without running external Composer commands.
public
getCurrentVersion() : string
Description
This method MUST return the package version when composer metadata is
available.
It MUST return VERSION_UNKNOWN when metadata is unavailable or on
resolution errors.
Return values
Resolves the latest stable DevTools version available to Composer.
private
resolveLatestStableVersion() : string|null