TemplatePathsCacheWarmer
extends CacheWarmer
in package
Computes the association between template names and their paths on the disk.
Tags
Table of Contents
- $finder : mixed
- $locator : mixed
- __construct() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : mixed
- Warms up the cache.
- writeCacheFile() : mixed
Properties
$finder
protected
mixed
$finder
$locator
protected
mixed
$locator
Methods
__construct()
public
__construct(TemplateFinderInterface $finder, TemplateLocator $locator) : mixed
Parameters
- $finder : TemplateFinderInterface
- $locator : TemplateLocator
Return values
mixed —isOptional()
Checks whether this warmer is optional or not.
public
isOptional() : bool
Return values
bool —always true
warmUp()
Warms up the cache.
public
warmUp(string $cacheDir) : mixed
Parameters
- $cacheDir : string
-
The cache directory
Return values
mixed —writeCacheFile()
protected
writeCacheFile(mixed $file, mixed $content) : mixed
Parameters
- $file : mixed
- $content : mixed