Interface for classes able to warm up the cache.
@author Fabien Potencier <fabien@symfony.com>
Expanded class hierarchy of CacheWarmerInterface
All classes that implement CacheWarmerInterface
interface CacheWarmerInterface extends WarmableInterface {
/**
* 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 Boolean true if the warmer is optional, false otherwise
*/
public function isOptional();
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheWarmerInterface:: |
public | function | Checks whether this warmer is optional or not. | 2 |
WarmableInterface:: |
public | function | Warms up the cache. | 3 |