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