Documentation

CacheWarmerAggregate
in package
implements CacheWarmerInterface

Aggregates several cache warmers into a single one.

Tags
author

Fabien Potencier fabien@symfony.com

final

since version 3.4

Interfaces, Classes and Traits

CacheWarmerInterface
Interface for classes able to warm up the cache.

Table of Contents

$optionalsEnabled  : mixed
$warmers  : mixed
$triggerDeprecation  : mixed
__construct()  : mixed
add()  : mixed
enableOptionalWarmers()  : mixed
isOptional()  : bool
Checks whether this warmer is optional or not.
setWarmers()  : mixed
warmUp()  : mixed
Warms up the cache.

Properties

Methods

__construct()

public __construct([mixed $warmers = [] ]) : mixed
Parameters
$warmers : mixed = []
Return values
mixed

isOptional()

Checks whether this warmer is optional or not.

public isOptional() : bool
Return values
bool

always false

setWarmers()

public setWarmers(array<string|int, mixed> $warmers) : mixed
Parameters
$warmers : array<string|int, mixed>
Tags
deprecated

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

Return values
mixed

warmUp()

Warms up the cache.

public warmUp(string $cacheDir) : mixed
Parameters
$cacheDir : string

The cache directory

Return values
mixed

Search results