SerializerCacheWarmer
extends AbstractPhpFileCacheWarmer
in package
Warms up XML and YAML serializer metadata.
Tags
Table of Contents
- $loaders : mixed
- $phpArrayFile : mixed
- __construct() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : mixed
- {@inheritdoc}
- doWarmUp() : bool
- warmUpPhpArrayAdapter() : mixed
- extractSupportedLoaders() : array<string|int, XmlFileLoader>|array<string|int, YamlFileLoader>
Properties
$loaders
private
mixed
$loaders
$phpArrayFile
private
mixed
$phpArrayFile
Methods
__construct()
public
__construct(array<string|int, LoaderInterface> $loaders, string $phpArrayFile) : mixed
Parameters
- $loaders : array<string|int, LoaderInterface>
-
The serializer metadata loaders
- $phpArrayFile : string
-
The PHP file where metadata are cached
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
Return values
mixed —doWarmUp()
protected
doWarmUp(mixed $cacheDir, ArrayAdapter $arrayAdapter) : bool
Parameters
- $cacheDir : mixed
- $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>
Return values
mixed —extractSupportedLoaders()
private
extractSupportedLoaders(array<string|int, LoaderInterface> $loaders) : array<string|int, XmlFileLoader>|array<string|int, YamlFileLoader>
Parameters
- $loaders : array<string|int, LoaderInterface>