Fix required after optional parameter in doctrine config factory

[MAILPOET-3296]
This commit is contained in:
Rostislav Wolny
2020-11-24 12:03:45 +01:00
committed by Veljko V
parent 56d7cd1398
commit 12cc818f8b
7 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ use MailPoetVendor\Doctrine\ORM\Mapping\Driver\AnnotationDriver;
$annotationReaderProvider = new AnnotationReaderProvider();
$annotationReader = $annotationReaderProvider->getAnnotationReader();
$configuration = (new ConfigurationFactory(false, $annotationReaderProvider))->createConfiguration();
$configuration = (new ConfigurationFactory($annotationReaderProvider, false))->createConfiguration();
$configuration->setMetadataDriverImpl(
new class($annotationReader, [ConfigurationFactory::ENTITY_DIR]) extends AnnotationDriver {
// Returning 'isTransient' = true means 'do not try to load Doctrine metadata' (which is true for most classes).