CoreVersionService

class \TYPO3\CMS\Install\Service\CoreVersionService

Core version service

Table of Contents

Properties

$apiBaseUrl  : string
Base URI for TYPO3 Version REST api

Methods

getInstalledVersion()  : string
Get current installed version number
getMaintenanceWindow()  : MaintenanceWindow
getSupportedMajorReleases()  : array{community: string[], elts: string[]}
getYoungestCommunityPatchRelease()  : CoreRelease
getYoungestPatchRelease()  : CoreRelease
Youngest patch release
isCurrentInstalledVersionElts()  : bool
isInstalledVersionAReleasedVersion()  : bool
Development git checkout versions always end with '-dev'. They are not "released" as such and can not be updated.
isPatchReleaseSuitableForUpdate()  : bool
isUpdateSecurityRelevant()  : bool
Returns TRUE if an upgrade from current version is security relevant
fetchFromRemote()  : array
getInstalledMajorVersion()  : string
Get 'major version' from installed version of TYPO3, e.g., '7' from '7.3.0'
throwFetchException()  : void
Helper method to throw same exception in multiple places

Properties

$apiBaseUrl

Base URI for TYPO3 Version REST api

protected string $apiBaseUrl = 'https://get.typo3.org/api/v1/'

Methods

getInstalledVersion()

Get current installed version number

public getInstalledVersion() : string

Return values

string

getSupportedMajorReleases()

public getSupportedMajorReleases() : array{community: string[], elts: string[]}

Tags

todo

docblock

Return values

array{community: string[], elts: string[]}

isCurrentInstalledVersionElts()

public isCurrentInstalledVersionElts() : bool

Return values

bool

isInstalledVersionAReleasedVersion()

Development git checkout versions always end with '-dev'. They are not "released" as such and can not be updated.

public isInstalledVersionAReleasedVersion() : bool

Return values

bool —

FALSE If some development version is installed

isPatchReleaseSuitableForUpdate()

public isPatchReleaseSuitableForUpdate(CoreRelease $coreRelease) : bool

Parameters

$coreRelease : CoreRelease

Return values

bool

isUpdateSecurityRelevant()

Returns TRUE if an upgrade from current version is security relevant

public isUpdateSecurityRelevant(CoreRelease $releaseToCheck) : bool

Parameters

$releaseToCheck : CoreRelease

Tags

throws
RemoteFetchException

Return values

bool —

TRUE if there is a pending security update

fetchFromRemote()

protected fetchFromRemote(string $url) : array

Parameters

$url : string

Tags

throws
RemoteFetchException

Return values

array

getInstalledMajorVersion()

Get 'major version' from installed version of TYPO3, e.g., '7' from '7.3.0'

protected getInstalledMajorVersion() : string

Return values

string —

For example 7

throwFetchException()

Helper method to throw same exception in multiple places

protected throwFetchException(string $url) : void

Parameters

$url : string

Tags

throws
RemoteFetchException
On this page