‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache Class Reference
Inheritance diagram for TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache:
TYPO3\CMS\Core\Package\Cache\PackageCacheInterface

Public Member Functions

 __construct (string $packageStatesFile, FrontendInterface $coreCache)
 
 fetch ()
 
 store (PackageCacheEntry $cacheEntry)
 
 invalidate ()
 
 getIdentifier ()
 

Private Attributes

const CACHE_IDENTIFIER_PREFIX = 'PackageManager_'
 
string $cacheIdentifier
 
string $packageStatesFile
 
FrontendInterface $coreCache
 

Detailed Description

TYPO3 Package cache for package states file. This replicates previous behaviour around the availability of a PackageStates.php file and has been extracted from PackageManager

Definition at line 31 of file PackageStatesPackageCache.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::__construct ( string  $packageStatesFile,
FrontendInterface  $coreCache 
)

Member Function Documentation

◆ fetch()

TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::fetch ( )

◆ getIdentifier()

TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::getIdentifier ( )

"Hash" the package states file when cacheIdentifier is null This is done to cache the state and to represent invalidated state.

Exceptions
PackageManagerCacheUnavailableException

Implements TYPO3\CMS\Core\Package\Cache\PackageCacheInterface.

Definition at line 78 of file PackageStatesPackageCache.php.

References TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache\$cacheIdentifier.

Referenced by TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache\fetch(), and TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache\store().

◆ invalidate()

TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::invalidate ( )

Invalidate the current entry (only applicable in non Composer mode)

Implements TYPO3\CMS\Core\Package\Cache\PackageCacheInterface.

Definition at line 63 of file PackageStatesPackageCache.php.

◆ store()

Member Data Documentation

◆ $cacheIdentifier

string TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::$cacheIdentifier
private

◆ $coreCache

FrontendInterface TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::$coreCache
private

◆ $packageStatesFile

string TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::$packageStatesFile
private

◆ CACHE_IDENTIFIER_PREFIX

const TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache::CACHE_IDENTIFIER_PREFIX = 'PackageManager_'
private

Definition at line 33 of file PackageStatesPackageCache.php.