class ChainCacheClearer implements CacheClearerInterface

ChainCacheClearer.

Properties

protected $clearers

Methods

__construct(array $clearers = array())

Constructs a new instance of ChainCacheClearer.

clear(string $cacheDir)

Clears any caches necessary.

add(CacheClearerInterface $clearer)

Adds a cache clearer to the aggregate.

Details

at line 28
__construct(array $clearers = array())

Constructs a new instance of ChainCacheClearer.

Parameters

array $clearers The initial clearers

at line 36
clear(string $cacheDir)

Clears any caches necessary.

Parameters

string $cacheDir The cache directory

at line 46
add(CacheClearerInterface $clearer)

Adds a cache clearer to the aggregate.

Parameters

CacheClearerInterface $clearer