class VersionGuesser (View source)

Try to guess the current version number based on different VCS configuration.

Methods

__construct(Config $config, ProcessExecutor $process, VersionParser $versionParser)

No description

null|array
guessVersion(array $packageConfig, string $path)

No description

Details

__construct(Config $config, ProcessExecutor $process, VersionParser $versionParser)

Parameters

Config $config
ProcessExecutor $process
VersionParser $versionParser

null|array guessVersion(array $packageConfig, string $path)

Parameters

array $packageConfig
string $path Path to guess into

Return Value

null|array versionData, 'version', 'pretty_version' and 'commit' keys