class TestCacheWarmer

Hierarchy

Expanded class hierarchy of TestCacheWarmer

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php, line 49

Namespace

Symfony\Component\HttpKernel\Tests\CacheWarmer
View source
class TestCacheWarmer extends CacheWarmer {
  protected $file;
  public function __construct($file) {
    $this->file = $file;
  }
  public function warmUp($cacheDir) {
    $this
      ->writeCacheFile($this->file, 'content');
  }
  public function isOptional() {
    return false;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CacheWarmer::writeCacheFile protected function
TestCacheWarmer::$file protected property
TestCacheWarmer::isOptional public function Checks whether this warmer is optional or not. Overrides CacheWarmerInterface::isOptional
TestCacheWarmer::warmUp public function Warms up the cache. Overrides WarmableInterface::warmUp
TestCacheWarmer::__construct public function