PackageStatesPackageCache implements PackageCacheInterface

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

Internal

Table of Contents

Interfaces

PackageCacheInterface
Interface for TYPO3 Package cache.

Methods

__construct()  : mixed
fetch()  : PackageCacheEntry
Fetch the (package states) entry from a persistent or transient location
getIdentifier()  : string
Combines mtime and filesize to detect PackageStates.php changes.
invalidate()  : void
Invalidate the current entry (only applicable in non Composer mode)
store()  : void
Store the entry

Methods

getIdentifier()

Combines mtime and filesize to detect PackageStates.php changes.

public getIdentifier() : string

mtime alone has 1-second resolution: a write within the same second produces an identical identifier, causing PackageActivationService to load a stale DI container missing the just-activated extension.

Tags
throws
PackageManagerCacheUnavailableException
Return values
string

invalidate()

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

public invalidate() : void

        
On this page

Search results