mediatekformation

TemplateCacheCacheWarmer
in package
implements CacheWarmerInterface, CompatibilityServiceSubscriberInterface

Generates the Twig cache for all templates.

This warmer must be registered after TemplatePathsCacheWarmer, as the Twig loader will need the cache generated by it.

Tags
author

Fabien Potencier fabien@symfony.com

deprecated

since version 4.4, to be removed in 5.0; use Twig instead.

Interfaces, Classes, Traits and Enums

CacheWarmerInterface
Interface for classes able to warm up the cache.
CompatibilityServiceSubscriberInterface

Table of Contents

$container  : mixed
$finder  : mixed
$paths  : mixed
__construct()  : mixed
getSubscribedServices()  : mixed
{@inheritdoc}
isOptional()  : bool
Checks whether this warmer is optional or not.
warmUp()  : mixed
Warms up the cache.
findTemplatesInFolder()  : array<string|int, mixed>
Find templates in the given directory.

Properties

Methods

getSubscribedServices()

{@inheritdoc}

public static getSubscribedServices() : mixed
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

findTemplatesInFolder()

Find templates in the given directory.

private findTemplatesInFolder(string|null $namespace, string $dir) : array<string|int, mixed>
Parameters
$namespace : string|null
$dir : string
Return values
array<string|int, mixed>

Search results