class ExpressionCacheWarmer implements CacheWarmerInterface

Methods

__construct(iterable $expressions, ExpressionLanguage $expressionLanguage)

No description

bool
isOptional()

Checks whether this warmer is optional or not.

warmUp(string $cacheDir)

Warms up the cache.

Details

at line 26
__construct(iterable $expressions, ExpressionLanguage $expressionLanguage)

Parameters

iterable $expressions
ExpressionLanguage $expressionLanguage

at line 32
bool isOptional()

Checks whether this warmer is optional or not.

Optional warmers can be ignored on certain conditions.

A warmer should return true if the cache can be generated incrementally and on-demand.

Return Value

bool true if the warmer is optional, false otherwise

at line 37
warmUp(string $cacheDir)

Warms up the cache.

Parameters

string $cacheDir The cache directory