Skip to content

Commit 5961868

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Yaml] Minor: Update Inline parse phpdoc [DependencyInjection] Fix dumping inlined withers [HttpClient] Move Http clients data collecting at a late level [FrameworkBundle] restore call to addGlobalIgnoredName Allow EmailValidator 4 Fix detecting mapping with one line annotations
2 parents 40cd44d + 1df9cdb commit 5961868

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,11 +1635,14 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
16351635

16361636
$loader->load('annotations.php');
16371637

1638+
// registerUniqueLoader exists since doctrine/annotations v1.6
16381639
if (!method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
1640+
// registerLoader exists only in doctrine/annotations v1
16391641
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
16401642
$container->getDefinition('annotations.dummy_registry')
16411643
->setMethodCalls([['registerLoader', ['class_exists']]]);
16421644
} else {
1645+
// remove the dummy registry when doctrine/annotations v2 is used
16431646
$container->removeDefinition('annotations.dummy_registry');
16441647
}
16451648
}

Resources/config/annotations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
->set('annotations.reader', AnnotationReader::class)
2626
->call('addGlobalIgnoredName', [
2727
'required',
28-
service('annotations.dummy_registry')->ignoreOnInvalid(), // dummy arg to register class_exists as annotation loader only when required
28+
service('annotations.dummy_registry')->nullOnInvalid(), // dummy arg to register class_exists as annotation loader only when required
2929
])
3030

3131
->set('annotations.dummy_registry', AnnotationRegistry::class)

0 commit comments

Comments
 (0)