‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Package\FailsafePackageManager Class Reference
Inheritance diagram for TYPO3\CMS\Core\Package\FailsafePackageManager:

Public Member Functions

 forceSortAndSavePackageStates ()
 recreatePackageStatesFileIfMissing (bool $useFactoryDefault=false)

Protected Member Functions

 loadPackageStates ()
 saveToPackageCache ()
 savePackageStates ()

Protected Attributes

bool $inFailsafeMode = false

Detailed Description

This is an intermediate package manager that loads just the required extensions for the install in case the package states are unavailable.

Definition at line 26 of file FailsafePackageManager.php.

Member Function Documentation

◆ forceSortAndSavePackageStates()

TYPO3\CMS\Core\Package\FailsafePackageManager::forceSortAndSavePackageStates ( )

To enable writing of the package states file the package states migration needs to override eventual failsafe blocks.

Definition at line 72 of file FailsafePackageManager.php.

Referenced by TYPO3\CMS\Core\Package\FailsafePackageManager\recreatePackageStatesFileIfMissing().

◆ loadPackageStates()

TYPO3\CMS\Core\Package\FailsafePackageManager::loadPackageStates ( )

Loads the states of available packages from the PackageStates.php file. The result is stored in $this->packageStatesConfiguration.

Definition at line 36 of file FailsafePackageManager.php.

◆ recreatePackageStatesFileIfMissing()

TYPO3\CMS\Core\Package\FailsafePackageManager::recreatePackageStatesFileIfMissing ( bool  $useFactoryDefault = false)

Create PackageStates.php if missing and LocalConfiguration exists, used to have an Install Tool session running

It is fired if PackageStates.php is deleted on a running instance, all packages marked as "part of minimal system" are activated in this case.

bool$useFactoryDefault‪if true, use the "isPartOfFactoryDefault" otherwise use "isPartOfMinimalUsableSystem"

Definition at line 86 of file FailsafePackageManager.php.

References TYPO3\CMS\Core\Package\FailsafePackageManager\forceSortAndSavePackageStates(), and TYPO3\CMS\Core\Core\Environment\isComposerMode().

◆ savePackageStates()

TYPO3\CMS\Core\Package\FailsafePackageManager::savePackageStates ( )

Save states

Definition at line 60 of file FailsafePackageManager.php.

◆ saveToPackageCache()

TYPO3\CMS\Core\Package\FailsafePackageManager::saveToPackageCache ( )

Never try to access the cache in failsafe mode

Definition at line 49 of file FailsafePackageManager.php.

Member Data Documentation

◆ $inFailsafeMode

bool TYPO3\CMS\Core\Package\FailsafePackageManager::$inFailsafeMode = false

TRUE if package manager is in failsafe mode

Definition at line 30 of file FailsafePackageManager.php.