ComposerPackageArtifact implements PackageCacheInterface
TYPO3 Package "cache" for Composer mode.
This class is used in two contexts: During Composer build time the artifact is stored and during TYPO3 runtime the artifact is only read. The context is decided on object construction.
This class is an implementation detail and does not represent public API
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
- Identifier that identifies the current state (typically a hash)
- invalidate() : void
- Invalidate the current entry (only applicable in non Composer mode)
- store() : void
- Store the entry
Methods
__construct()
public
__construct(string $packageArtifactsPath[, Filesystem|null $filesystem = null ][, string|null $cacheIdentifier = null ]) : mixed
Parameters
- $packageArtifactsPath : string
- $filesystem : Filesystem|null = null
- $cacheIdentifier : string|null = null
fetch()
Fetch the (package states) entry from a persistent or transient location
public
fetch() : PackageCacheEntry
Return values
PackageCacheEntrygetIdentifier()
Identifier that identifies the current state (typically a hash)
public
getIdentifier() : string
Return values
stringinvalidate()
Invalidate the current entry (only applicable in non Composer mode)
public
invalidate() : void
store()
Store the entry
public
store(PackageCacheEntry $cacheEntry) : void
Parameters
- $cacheEntry : PackageCacheEntry