ChainCacheClearer
class ChainCacheClearer implements CacheClearerInterface
ChainCacheClearer.
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
__construct(array $clearers = array())
Constructs a new instance of ChainCacheClearer.
Parameters
array | $clearers | The initial clearers |
clear(string $cacheDir)
Clears any caches necessary.
Parameters
string | $cacheDir | The cache directory |
add(CacheClearerInterface $clearer)
Adds a cache clearer to the aggregate.
Parameters
CacheClearerInterface | $clearer |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/HttpKernel/CacheClearer/ChainCacheClearer.html