public function __construct(ValidatorBuilder
$validatorBuilder, string
$phpArrayFile) { parent::
__construct($phpArrayFile);
$this->validatorBuilder =
$validatorBuilder;
} protected function doWarmUp(string
$cacheDir, ArrayAdapter
$arrayAdapter): bool
{ $loaders =
$this->validatorBuilder->
getLoaders();
$metadataFactory =
new LazyLoadingMetadataFactory(new LoaderChain($loaders),
$arrayAdapter);
foreach ($this->
extractSupportedLoaders($loaders) as $loader) { foreach ($loader->
getMappedClasses() as $mappedClass) { try { if ($metadataFactory->
hasMetadataFor($mappedClass)) { $metadataFactory->
getMetadataFor($mappedClass);
} } catch (AnnotationException
) { // ignore failing annotations
} catch (\Exception
$e) { $this->
ignoreAutoloadException($mappedClass,
$e);
} } }