PHP 클래스 PartKeepr\CoreBundle\Services\VersionService

파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
__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 )