class CacheWarmerAggregate implements CacheWarmerInterface

Aggregates several cache warmers into a single one.

Properties

protected $warmers
protected $optionalsEnabled

Methods

__construct($warmers = [])

No description

enableOptionalWarmers()

No description

warmUp(string $cacheDir)

Warms up the cache.

bool
isOptional()

Checks whether this warmer is optional or not.

setWarmers(array $warmers) deprecated

No description

add(CacheWarmerInterface $warmer) deprecated

No description

Details

at line 27
__construct($warmers = [])

Parameters

$warmers

at line 35
enableOptionalWarmers()

at line 45
warmUp(string $cacheDir)

Warms up the cache.

Parameters

string $cacheDir The cache directory

at line 61
bool isOptional()

Checks whether this warmer is optional or not.

Return Value

bool true if the warmer is optional, false otherwise

at line 69
setWarmers(array $warmers) deprecated

deprecated since version 3.4, to be removed in 4.0, inject the list of clearers as a constructor argument instead.

Parameters

array $warmers

at line 82
add(CacheWarmerInterface $warmer) deprecated

deprecated since version 3.4, to be removed in 4.0, inject the list of clearers as a constructor argument instead.

Parameters

CacheWarmerInterface $warmer