return true;
} /**
* @return string[] A list of classes to preload on PHP 7.4+
*/
protected function warmUpPhpArrayAdapter(PhpArrayAdapter
$phpArrayAdapter, array
$values): array
{ // make sure we don't cache null values
$values =
array_filter($values,
fn ($val) => null !==
$val);
return parent::
warmUpPhpArrayAdapter($phpArrayAdapter,
$values);
} private function readAllComponents(Reader
$reader, string
$class): void
{ $reflectionClass =
new \
ReflectionClass($class);
try { $reader->
getClassAnnotations($reflectionClass);
} catch (AnnotationException
) { /*
* Ignore any AnnotationException to not break the cache warming process if an Annotation is badly
* configured or could not be found / read / etc.
*
* In particular cases, an Annotation in your code can be used and defined only for a specific
* environment but is always added to the annotations.map file by some Symfony default behaviors,
* and you always end up with a not found Annotation.
*/