TemplateCacheWarmer
in package
implements
CacheWarmerInterface, CompatibilityServiceSubscriberInterface
Generates the Twig cache for all templates.
Tags
Interfaces, Classes, Traits and Enums
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
- CompatibilityServiceSubscriberInterface
Table of Contents
- $container : mixed
- $iterator : mixed
- $twig : mixed
- __construct() : mixed
- getSubscribedServices() : mixed
- {@inheritdoc}
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : mixed
- {@inheritdoc}
Properties
$container
private
mixed
$container
$iterator
private
mixed
$iterator
$twig
private
mixed
$twig
Methods
__construct()
public
__construct(ContainerInterface $container, iteratable<string|int, mixed> $iterator) : mixed
Parameters
- $container : ContainerInterface
- $iterator : iteratable<string|int, mixed>
Return values
mixed —getSubscribedServices()
{@inheritdoc}
public
static getSubscribedServices() : mixed
Return values
mixed —isOptional()
Checks whether this warmer is optional or not.
public
isOptional() : bool
Return values
bool —true if the warmer is optional, false otherwise
warmUp()
{@inheritdoc}
public
warmUp(mixed $cacheDir) : mixed
Parameters
- $cacheDir : mixed