Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\HttpKernel\CacheWarmer; Chris@0: Chris@0: /** Chris@0: * Interface for classes able to warm up the cache. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface CacheWarmerInterface extends WarmableInterface Chris@0: { Chris@0: /** Chris@0: * Checks whether this warmer is optional or not. Chris@0: * Chris@0: * Optional warmers can be ignored on certain conditions. Chris@0: * Chris@0: * A warmer should return true if the cache can be Chris@0: * generated incrementally and on-demand. Chris@0: * Chris@0: * @return bool true if the warmer is optional, false otherwise Chris@0: */ Chris@0: public function isOptional(); Chris@0: }