CacheWarmerAggregate
in package
implements
CacheWarmerInterface
Aggregates several cache warmers into a single one.
Tags
Interfaces, Classes and Traits
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
Table of Contents
- $debug : mixed
- $deprecationLogsFilepath : mixed
- $onlyOptionalsEnabled : mixed
- $optionalsEnabled : mixed
- $warmers : mixed
- __construct() : mixed
- enableOnlyOptionalWarmers() : mixed
- enableOptionalWarmers() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : array<string|int, mixed>
- {@inheritdoc}
Properties
$debug
private
mixed
$debug
$deprecationLogsFilepath
private
mixed
$deprecationLogsFilepath
$onlyOptionalsEnabled
private
mixed
$onlyOptionalsEnabled
= false
$optionalsEnabled
private
mixed
$optionalsEnabled
= false
$warmers
private
mixed
$warmers
Methods
__construct()
public
__construct([iteratable<mixed, CacheWarmerInterface> $warmers = [] ][, bool $debug = false ][, string|null $deprecationLogsFilepath = null ]) : mixed
Parameters
- $warmers : iteratable<mixed, CacheWarmerInterface> = []
- $debug : bool = false
- $deprecationLogsFilepath : string|null = null
Return values
mixed —enableOnlyOptionalWarmers()
public
enableOnlyOptionalWarmers() : mixed
Return values
mixed —enableOptionalWarmers()
public
enableOptionalWarmers() : mixed
Return values
mixed —isOptional()
Checks whether this warmer is optional or not.
public
isOptional() : bool
Return values
bool —warmUp()
{@inheritdoc}
public
warmUp(string $cacheDir) : array<string|int, mixed>
Parameters
- $cacheDir : string