ExpressionCacheWarmer
in package
implements
CacheWarmerInterface
Table of Contents
Interfaces
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
Properties
- $expressionLanguage : mixed
- $expressions : iterable<string|int, mixed>
Methods
- __construct() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : array<string|int, string>
Properties
$expressionLanguage
private
mixed
$expressionLanguage
$expressions
private
iterable<string|int, mixed>
$expressions
Methods
__construct()
public
__construct(iterable<mixed, Expression|string> $expressions, ExpressionLanguage $expressionLanguage) : mixed
Parameters
- $expressions : iterable<mixed, Expression|string>
- $expressionLanguage : ExpressionLanguage
isOptional()
Checks whether this warmer is optional or not.
public
isOptional() : bool
Optional warmers can be ignored on certain conditions.
A warmer should return true if the cache can be generated incrementally and on-demand.
Return values
boolwarmUp()
public
warmUp(string $cacheDir) : array<string|int, string>
Parameters
- $cacheDir : string