PHP Класс PartKeepr\CoreBundle\Services\VersionService

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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() публичный Метод

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

extractGITCommit() публичный Метод

Extracts the current commit from GIT.
public extractGITCommit ( ) : string
Результат string

extractShortGITCommit() публичный Метод

Extracts the current short commit from GIT.
public extractShortGITCommit ( ) : string
Результат string

getCanonicalVersion() публичный Метод

public getCanonicalVersion ( )

getLatestVersion() публичный Метод

Returns the latest version information from partkeepr.org
public getLatestVersion ( ) : array | boolean
Результат array | boolean

getVersion() публичный Метод

Returns the current version string
public getVersion ( ) : string
Результат string The version

setVersion() публичный Метод

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

setVersionURI() публичный Метод

public setVersionURI ( $versionURI )