EnableFileService

Basic Service to check and create install tool files

Internal

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Table of Contents

Constants

FIRST_INSTALL_FILE_PATH  = 'FIRST_INSTALL'
INSTALL_TOOL_ENABLE_FILE_LIFETIME  = 3600
INSTALL_TOOL_ENABLE_FILE_PATH  = 'ENABLE_INSTALL_TOOL'

Methods

checkInstallToolEnableFile()  : bool
Checks if the install tool file exists
createInstallToolEnableFile()  : bool
Creates the INSTALL_TOOL_ENABLE file
getBestLocationForInstallToolEnableFile()  : string
getStaticLocationForInstallToolEnableFileDirectory()  : string
Returns a static directory path that is suitable to be presented to unauthenticated visitors, in order to circumvent "Full Path Disclosure" issues.
installToolEnableFileExists()  : bool
Checks if the install tool file exists
installToolEnableFileLifetimeExpired()  : bool
Checks if the lifetime of the install tool file is expired
isFirstInstallAllowed()  : bool
isInstallToolEnableFilePermanent()  : bool
Checks if the install tool file should be kept
removeFirstInstallFile()  : bool
Removes the FIRST_INSTALL file
removeInstallToolEnableFile()  : bool
Removes the INSTALL_TOOL_ENABLE file from all locations
extendInstallToolEnableFileLifetime()  : mixed
Updates the last modification of the ENABLE_INSTALL_TOOL file
getFirstInstallFilePaths()  : array<string|int, mixed>
Returns the paths to the FIRST_INSTALL files
getInstallToolEnableFilePath()  : string
Returns the absolute path to the INSTALL_TOOL_ENABLE file
getTransientPath()  : string
Based on composer or legacy mode, return a directory location where lock file can be stored.

Constants

FIRST_INSTALL_FILE_PATH

public string FIRST_INSTALL_FILE_PATH = 'FIRST_INSTALL'

Relative path to FIRST_INSTALL file

INSTALL_TOOL_ENABLE_FILE_LIFETIME

public int INSTALL_TOOL_ENABLE_FILE_LIFETIME = 3600

Maximum age of ENABLE_INSTALL_TOOL file before it gets removed (in seconds)

INSTALL_TOOL_ENABLE_FILE_PATH

public string INSTALL_TOOL_ENABLE_FILE_PATH = 'ENABLE_INSTALL_TOOL'

file name of the ENABLE_INSTALL_TOOL file

Methods

checkInstallToolEnableFile()

Checks if the install tool file exists

public static checkInstallToolEnableFile() : bool
Return values
bool

createInstallToolEnableFile()

Creates the INSTALL_TOOL_ENABLE file

public static createInstallToolEnableFile() : bool
Return values
bool

getBestLocationForInstallToolEnableFile()

public static getBestLocationForInstallToolEnableFile() : string
Return values
string

getStaticLocationForInstallToolEnableFileDirectory()

Returns a static directory path that is suitable to be presented to unauthenticated visitors, in order to circumvent "Full Path Disclosure" issues.

public static getStaticLocationForInstallToolEnableFileDirectory() : string

This is just used for display purposes.

Return values
string

installToolEnableFileExists()

Checks if the install tool file exists

public static installToolEnableFileExists() : bool
Return values
bool

installToolEnableFileLifetimeExpired()

Checks if the lifetime of the install tool file is expired

public static installToolEnableFileLifetimeExpired() : bool
Return values
bool

isFirstInstallAllowed()

public static isFirstInstallAllowed() : bool
Return values
bool

isInstallToolEnableFilePermanent()

Checks if the install tool file should be kept

public static isInstallToolEnableFilePermanent() : bool
Return values
bool

removeFirstInstallFile()

Removes the FIRST_INSTALL file

public static removeFirstInstallFile() : bool
Return values
bool

removeInstallToolEnableFile()

Removes the INSTALL_TOOL_ENABLE file from all locations

public static removeInstallToolEnableFile() : bool
Return values
bool

extendInstallToolEnableFileLifetime()

Updates the last modification of the ENABLE_INSTALL_TOOL file

protected static extendInstallToolEnableFileLifetime() : mixed

getFirstInstallFilePaths()

Returns the paths to the FIRST_INSTALL files

protected static getFirstInstallFilePaths() : array<string|int, mixed>
Return values
array<string|int, mixed>

getInstallToolEnableFilePath()

Returns the absolute path to the INSTALL_TOOL_ENABLE file

protected static getInstallToolEnableFilePath() : string
Return values
string

getTransientPath()

Based on composer or legacy mode, return a directory location where lock file can be stored.

protected static getTransientPath() : string
Return values
string

        
On this page

Search results