You are here

class TestCacheWarmer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php \Symfony\Component\HttpKernel\Tests\CacheWarmer\TestCacheWarmer

Hierarchy

Expanded class hierarchy of TestCacheWarmer

File

vendor/symfony/http-kernel/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