Documentation

SerializerCacheWarmer extends AbstractPhpFileCacheWarmer
in package

Warms up XML and YAML serializer metadata.

Tags
author

Titouan Galopin galopintitouan@gmail.com

Table of Contents

$loaders  : mixed
$phpArrayFile  : mixed
__construct()  : mixed
isOptional()  : bool
Checks whether this warmer is optional or not.
warmUp()  : array<string|int, string>
{@inheritdoc}
doWarmUp()  : bool
warmUpPhpArrayAdapter()  : array<string|int, string>
extractSupportedLoaders()  : array<string|int, XmlFileLoader>|array<string|int, YamlFileLoader>

Properties

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

warmUp()

{@inheritdoc}

public warmUp(string $cacheDir) : array<string|int, string>
Parameters
$cacheDir : string
Return values
array<string|int, string>

A list of classes to preload on PHP 7.4+

warmUpPhpArrayAdapter()

protected warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array<string|int, mixed> $values) : array<string|int, string>
Parameters
$phpArrayAdapter : PhpArrayAdapter
$values : array<string|int, mixed>
Return values
array<string|int, string>

A list of classes to preload on PHP 7.4+

extractSupportedLoaders()

private extractSupportedLoaders(array<string|int, LoaderInterface$loaders) : array<string|int, XmlFileLoader>|array<string|int, YamlFileLoader>
Parameters
$loaders : array<string|int, LoaderInterface>
Return values
array<string|int, XmlFileLoader>|array<string|int, YamlFileLoader>

Search results