CoreVersionService
Core version service
This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.
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<string|int, mixed>
- 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
stringgetMaintenanceWindow()
    public
                    getMaintenanceWindow() : MaintenanceWindow
    Return values
MaintenanceWindowgetSupportedMajorReleases()
    public
                    getSupportedMajorReleases() : array{community: string[], elts: string[]}
    Tags
Return values
array{community: string[], elts: string[]}getYoungestCommunityPatchRelease()
    public
                    getYoungestCommunityPatchRelease() : CoreRelease
    Return values
CoreReleasegetYoungestPatchRelease()
Youngest patch release
    public
                    getYoungestPatchRelease() : CoreRelease
    Tags
Return values
CoreReleaseisCurrentInstalledVersionElts()
    public
                    isCurrentInstalledVersionElts() : bool
    Return values
boolisInstalledVersionAReleasedVersion()
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
boolisUpdateSecurityRelevant()
Returns TRUE if an upgrade from current version is security relevant
    public
                    isUpdateSecurityRelevant(CoreRelease $releaseToCheck) : bool
    Parameters
- $releaseToCheck : CoreRelease
Tags
Return values
bool —TRUE if there is a pending security update
fetchFromRemote()
    protected
                    fetchFromRemote(string $url) : array<string|int, mixed>
    Parameters
- $url : string
Tags
Return values
array<string|int, mixed>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