‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Service\EnableFileService Class Reference

Static Public Member Functions

static isFirstInstallAllowed ()
 
static createInstallToolEnableFile ()
 
static removeInstallToolEnableFile ()
 
static removeFirstInstallFile ()
 
static installToolEnableFileExists ()
 
static checkInstallToolEnableFile ()
 
static isInstallToolEnableFilePermanent ()
 
static installToolEnableFileLifetimeExpired ()
 
static getStaticLocationForInstallToolEnableFileDirectory ()
 
static getBestLocationForInstallToolEnableFile ()
 

Public Attributes

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

Static Protected Member Functions

static extendInstallToolEnableFileLifetime ()
 
static getInstallToolEnableFilePath ()
 
static getFirstInstallFilePaths ()
 

Detailed Description

Basic Service to check and create install tool files

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

Definition at line 25 of file EnableFileService.php.

Member Function Documentation

◆ checkInstallToolEnableFile()

static TYPO3\CMS\Install\Service\EnableFileService::checkInstallToolEnableFile ( )
static

◆ createInstallToolEnableFile()

◆ extendInstallToolEnableFileLifetime()

static TYPO3\CMS\Install\Service\EnableFileService::extendInstallToolEnableFileLifetime ( )
staticprotected

◆ getBestLocationForInstallToolEnableFile()

◆ getFirstInstallFilePaths()

static TYPO3\CMS\Install\Service\EnableFileService::getFirstInstallFilePaths ( )
staticprotected

◆ getInstallToolEnableFilePath()

◆ getStaticLocationForInstallToolEnableFileDirectory()

static TYPO3\CMS\Install\Service\EnableFileService::getStaticLocationForInstallToolEnableFileDirectory ( )
static

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

Definition at line 165 of file EnableFileService.php.

References TYPO3\CMS\Core\Core\Environment\isComposerMode().

Referenced by TYPO3\CMS\Install\Controller\LoginController\showEnableInstallToolFileAction().

◆ installToolEnableFileExists()

static TYPO3\CMS\Install\Service\EnableFileService::installToolEnableFileExists ( )
static

◆ installToolEnableFileLifetimeExpired()

static TYPO3\CMS\Install\Service\EnableFileService::installToolEnableFileLifetimeExpired ( )
static

Checks if the lifetime of the install tool file is expired

Definition at line 135 of file EnableFileService.php.

Referenced by TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus().

◆ isFirstInstallAllowed()

◆ isInstallToolEnableFilePermanent()

static TYPO3\CMS\Install\Service\EnableFileService::isInstallToolEnableFilePermanent ( )
static

◆ removeFirstInstallFile()

static TYPO3\CMS\Install\Service\EnableFileService::removeFirstInstallFile ( )
static

◆ removeInstallToolEnableFile()

Member Data Documentation

◆ FIRST_INSTALL_FILE_PATH

const TYPO3\CMS\Install\Service\EnableFileService::FIRST_INSTALL_FILE_PATH = 'FIRST_INSTALL'

Definition at line 35 of file EnableFileService.php.

◆ INSTALL_TOOL_ENABLE_FILE_LIFETIME

const TYPO3\CMS\Install\Service\EnableFileService::INSTALL_TOOL_ENABLE_FILE_LIFETIME = 3600

◆ INSTALL_TOOL_ENABLE_FILE_PATH