PHP Class PartKeepr\CoreBundle\Services\VersionService

Afficher le fichier Open project: partkeepr/PartKeepr Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( SystemNoticeService $systemNoticeService, Symfony\Component\Translation\TranslatorInterface $translator, PartKeepr\RemoteFileLoader\RemoteFileLoaderFactory $remoteFileLoader )
doVersionCheck ( ) Checks against the versions at partkeepr.org.
extractGITCommit ( ) : string Extracts the current commit from GIT.
extractShortGITCommit ( ) : string Extracts the current short commit from GIT.
getCanonicalVersion ( )
getLatestVersion ( ) : array | boolean Returns the latest version information from partkeepr.org
getVersion ( ) : string Returns the current version string
setVersion ( $version ) Sets the version string
setVersionURI ( $versionURI )

Method Details

__construct() public méthode

public __construct ( SystemNoticeService $systemNoticeService, Symfony\Component\Translation\TranslatorInterface $translator, PartKeepr\RemoteFileLoader\RemoteFileLoaderFactory $remoteFileLoader )
$systemNoticeService SystemNoticeService
$translator Symfony\Component\Translation\TranslatorInterface
$remoteFileLoader PartKeepr\RemoteFileLoader\RemoteFileLoaderFactory

doVersionCheck() public méthode

If a newer version was found, create a system notice entry.
public doVersionCheck ( )

extractGITCommit() public méthode

Extracts the current commit from GIT.
public extractGITCommit ( ) : string
Résultat string

extractShortGITCommit() public méthode

Extracts the current short commit from GIT.
public extractShortGITCommit ( ) : string
Résultat string

getCanonicalVersion() public méthode

public getCanonicalVersion ( )

getLatestVersion() public méthode

Returns the latest version information from partkeepr.org
public getLatestVersion ( ) : array | boolean
Résultat array | boolean

getVersion() public méthode

Returns the current version string
public getVersion ( ) : string
Résultat string The version

setVersion() public méthode

Sets the version string
public setVersion ( $version )
$version string The version

setVersionURI() public méthode

public setVersionURI ( $versionURI )