TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FailsafePackageManager Class Reference
Inheritance diagram for FailsafePackageManager:
PackageManager SingletonInterface

Public Member Functions

 forceSortAndSavePackageStates ()
 
- Public Member Functions inherited from PackageManager
 __construct ()
 
 injectCoreCache (\TYPO3\CMS\Core\Cache\Frontend\PhpFrontend $coreCache)
 
 injectDependencyResolver (DependencyResolver $dependencyResolver)
 
 initialize ()
 
 scanAvailablePackages ()
 
 registerPackage (PackageInterface $package)
 
 getPackageKeyFromComposerName ($composerName)
 
 getPackage ($packageKey)
 
 isPackageAvailable ($packageKey)
 
 isPackageActive ($packageKey)
 
 deactivatePackage ($packageKey)
 
 activatePackage ($packageKey)
 
 activatePackageDuringRuntime ($packageKey)
 
 deletePackage ($packageKey)
 
 getActivePackages ()
 
 isPackageKeyValid ($packageKey)
 
 getAvailablePackages ()
 
 unregisterPackage (PackageInterface $package)
 
 getComposerManifest ($manifestPath)
 

Protected Member Functions

 loadPackageStates ()
 
 sortAndSavePackageStates ()
 
- Protected Member Functions inherited from PackageManager
 getCacheIdentifier ()
 
 getCacheEntryIdentifier ()
 
 saveToPackageCache ()
 
 loadPackageManagerStatesFromCache ()
 
 loadPackageStates ()
 
 initializePackageObjects ()
 
 registerActivePackage (PackageInterface $package)
 
 initializeCompatibilityLoadedExtArray ()
 
 registerPackageDuringRuntime ($packageKey)
 
 registerPackagesFromConfiguration (array $packages, $registerOnlyNewPackages=false, $packageStatesHasChanged=false)
 
 unregisterPackageByPackageKey ($packageKey)
 
 registerTransientClassLoadingInformationForPackage (PackageInterface $package)
 
 sortActivePackagesByDependencies ()
 
 resolvePackageDependencies ($packageConfig)
 
 getSuggestionArrayForPackage ($packageKey)
 
 sortAndSavePackageStates ()
 
 getExtensionEmConf ($packagePath)
 
 mapExtensionManagerConfigurationToComposerManifest ($packageKey, array $extensionManagerConfiguration,\stdClass $composerManifest)
 
 setComposerManifestValueIfEmpty (\stdClass $manifest, $property, $value)
 
 getDependencyArrayForPackage ($packageKey, array &$dependentPackageKeys=[], array $trace=[])
 
 getPackageKeyFromManifest ($manifest, $packagePath)
 
 getPackageBasePaths ()
 

Protected Attributes

 $inFailsafeMode = false
 
- Protected Attributes inherited from PackageManager
 $dependencyResolver
 
 $coreCache
 
 $cacheIdentifier
 
 $packagesBasePaths = []
 
 $packageAliasMap = []
 
 $runtimeActivatedPackages = []
 
 $packagesBasePath = PATH_site
 
 $packages = []
 
 $composerNameToPackageKeyMap = []
 
 $activePackages = []
 
 $packageStatesPathAndFilename
 
 $packageStatesConfiguration = []
 

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 22 of file FailsafePackageManager.php.

Member Function Documentation

forceSortAndSavePackageStates ( )

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

Definition at line 63 of file FailsafePackageManager.php.

loadPackageStates ( )
protected

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

Returns
void

Definition at line 35 of file FailsafePackageManager.php.

References PackageManager\scanAvailablePackages().

sortAndSavePackageStates ( )
protected

Sort and save states

Returns
void

Definition at line 51 of file FailsafePackageManager.php.

Member Data Documentation

$inFailsafeMode = false
protected

Definition at line 27 of file FailsafePackageManager.php.