Update symfony/validator package to v5

[MAILPOET-4227]
This commit is contained in:
Jan Lysý
2022-04-22 12:57:49 +02:00
committed by Veljko V
parent 1e0878cf6c
commit 4ed3c44d6b
4 changed files with 189 additions and 35 deletions

View File

@@ -28,7 +28,8 @@ class ValidatorFactory {
// annotation reader exists only in dev environment, on production cache is pre-generated
$annotationReader = $this->annotationReaderProvider->getAnnotationReader();
if ($annotationReader) {
$builder->enableAnnotationMapping($annotationReader);
$builder->setDoctrineAnnotationReader($annotationReader)
->enableAnnotationMapping(true);
}
// metadata cache (for production cache is pre-generated at build time)