class TestCacheWarmer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php \Symfony\Component\HttpKernel\Tests\CacheWarmer\TestCacheWarmer
Hierarchy
- class \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmer implements CacheWarmerInterface
- class \Symfony\Component\HttpKernel\Tests\CacheWarmer\TestCacheWarmer
Expanded class hierarchy of TestCacheWarmer
File
- vendor/
symfony/ http-kernel/ Tests/ CacheWarmer/ CacheWarmerTest.php, line 49
Namespace
Symfony\Component\HttpKernel\Tests\CacheWarmerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheWarmer:: |
protected | function | ||
TestCacheWarmer:: |
protected | property | ||
TestCacheWarmer:: |
public | function |
Checks whether this warmer is optional or not. Overrides CacheWarmerInterface:: |
|
TestCacheWarmer:: |
public | function |
Warms up the cache. Overrides WarmableInterface:: |
|
TestCacheWarmer:: |
public | function |