AnnotationsCacheWarmer
extends AbstractPhpFileCacheWarmer
in package
Warms up annotation caches for classes found in composer's autoload class map and declared in DI bundle extensions using the addAnnotatedClassesToCache method.
Tags
Table of Contents
- $annotationReader : mixed
- $debug : mixed
- $excludeRegexp : mixed
- $phpArrayFile : mixed
- __construct() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : mixed
- {@inheritdoc}
- doWarmUp() : bool
- warmUpPhpArrayAdapter() : mixed
- readAllComponents() : mixed
Properties
$annotationReader
private
mixed
$annotationReader
$debug
private
mixed
$debug
$excludeRegexp
private
mixed
$excludeRegexp
$phpArrayFile
private
mixed
$phpArrayFile
Methods
__construct()
public
__construct(Reader $annotationReader, string $phpArrayFile[, string $excludeRegexp = null ][, bool $debug = false ]) : mixed
Parameters
- $annotationReader : Reader
- $phpArrayFile : string
-
The PHP file where annotations are cached
- $excludeRegexp : string = null
- $debug : bool = false
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 —readAllComponents()
private
readAllComponents(Reader $reader, string $class) : mixed
Parameters
- $reader : Reader
- $class : string