public static function Semver::versionParser in Markdown 8.2
Retrieves a version parser.
Return value
\Composer\Semver\VersionParser A version parser.
2 calls to Semver::versionParser()
- Semver::ksort in src/
Util/ Semver.php - Sorts an array where the keys are versions.
- Semver::satisfiedByStability in src/
Util/ Semver.php - Return all versions that satisfy a given minimum stability.
File
- src/
Util/ Semver.php, line 177
Class
- Semver
- Extends the base Composer SemVer class with additional functionality.
Namespace
Drupal\markdown\UtilCode
public static function versionParser() {
if (!static::$versionParser) {
static::$versionParser = new VersionParser();
}
return static::$versionParser;
}