DoctrineMetadataCacheWarmer
extends AbstractPhpFileCacheWarmer
in package
Table of Contents
- $entityManager : EntityManagerInterface
- $phpArrayFile : string
- __construct() : mixed
- isOptional() : bool
- It must not be optional because it should be called before ProxyCacheWarmer which is not optional.
- warmUp() : mixed
- {@inheritdoc}
- doWarmUp() : bool
- warmUpPhpArrayAdapter() : mixed
Properties
$entityManager
private
EntityManagerInterface
$entityManager
$phpArrayFile
private
string
$phpArrayFile
Methods
__construct()
public
__construct(EntityManagerInterface $entityManager, string $phpArrayFile) : mixed
Parameters
- $entityManager : EntityManagerInterface
- $phpArrayFile : string
-
The PHP file where metadata are cached
Return values
mixed —isOptional()
It must not be optional because it should be called before ProxyCacheWarmer which is not optional.
public
isOptional() : bool
Return values
bool —true if the warmer is optional, false otherwise
warmUp()
{@inheritdoc}
public
warmUp(mixed $cacheDir) : mixed
Parameters
- $cacheDir : mixed
Return values
mixed —doWarmUp()
protected
doWarmUp(string $cacheDir, ArrayAdapter $arrayAdapter) : bool
Parameters
- $cacheDir : string
- $arrayAdapter : ArrayAdapter
Return values
bool —false if there is nothing to warm-up
warmUpPhpArrayAdapter()
protected
warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array<string|int, mixed> $values) : mixed
Parameters
- $phpArrayAdapter : PhpArrayAdapter
- $values : array<string|int, mixed>