ProxyCacheWarmer
in package
implements
CacheWarmerInterface
The proxy generator cache warmer generates all entity proxies.
In the process of generating proxies the cache for all the metadata is primed also, since this information is necessary to build the proxies in the first place.
Tags
Table of Contents
Interfaces
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
Properties
- $registry : mixed
Methods
- __construct() : mixed
- isOptional() : bool
- This cache warmer is not optional, without proxies fatal error occurs!
- warmUp() : array<string|int, string>
- {@inheritdoc}
Properties
$registry
private
mixed
$registry
Methods
__construct()
public
__construct(ManagerRegistry $registry) : mixed
Parameters
- $registry : ManagerRegistry
isOptional()
This cache warmer is not optional, without proxies fatal error occurs!
public
isOptional() : bool
Return values
boolwarmUp()
{@inheritdoc}
public
warmUp(string $cacheDir) : array<string|int, string>
Parameters
- $cacheDir : string
Return values
array<string|int, string> —A list of files to preload on PHP 7.4+