ExpressionCacheWarmer
in package
implements
CacheWarmerInterface
Interfaces, Classes, Traits and Enums
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
Table of Contents
- $expressionLanguage : mixed
- $expressions : mixed
- __construct() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : mixed
Properties
$expressionLanguage
private
mixed
$expressionLanguage
$expressions
private
mixed
$expressions
Methods
__construct()
public
__construct(iteratable<string|int, mixed>|array<string|int, Expression> $expressions, ExpressionLanguage $expressionLanguage) : mixed
Parameters
- $expressions : iteratable<string|int, mixed>|array<string|int, Expression>
- $expressionLanguage : ExpressionLanguage
Return values
mixed —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
bool —true if the warmer is optional, false otherwise
warmUp()
public
warmUp(mixed $cacheDir) : mixed
Parameters
- $cacheDir : mixed