\Composer\Package\VersionVersionGuesser

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

Summary

Methods
Properties
Constants
__construct()
guessVersion()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
postprocess()
guessGitVersion()
versionFromGitTags()
guessHgVersion()
guessFeatureVersion()
guessFossilVersion()
guessSvnVersion()
$config
$process
$versionParser
N/A

Properties

Methods

guessVersion()

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

Parameters

array $packageConfig
string $path

Path to guess into

Returns

null|array —

versionData, 'version', 'pretty_version' and 'commit' keys

postprocess()

postprocess(array  $versionData) 

Parameters

array $versionData

guessGitVersion()

guessGitVersion(array  $packageConfig,   $path) 

Parameters

array $packageConfig
$path

versionFromGitTags()

versionFromGitTags(  $path) 

Parameters

$path

guessHgVersion()

guessHgVersion(array  $packageConfig,   $path) 

Parameters

array $packageConfig
$path

guessFeatureVersion()

guessFeatureVersion(array  $packageConfig,   $version, array  $branches,   $scmCmdline,   $path) 

Parameters

array $packageConfig
$version
array $branches
$scmCmdline
$path

guessFossilVersion()

guessFossilVersion(array  $packageConfig,   $path) 

Parameters

array $packageConfig
$path

guessSvnVersion()

guessSvnVersion(array  $packageConfig,   $path) 

Parameters

array $packageConfig
$path