Skip to content

Commit 1df9cdb

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [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 c741329 + 4633501 commit 1df9cdb

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
@@ -1645,11 +1645,14 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
16451645

16461646
$loader->load('annotations.php');
16471647

1648+
// registerUniqueLoader exists since doctrine/annotations v1.6
16481649
if (!method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
1650+
// registerLoader exists only in doctrine/annotations v1
16491651
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
16501652
$container->getDefinition('annotations.dummy_registry')
16511653
->setMethodCalls([['registerLoader', ['class_exists']]]);
16521654
} else {
1655+
// remove the dummy registry when doctrine/annotations v2 is used
16531656
$container->removeDefinition('annotations.dummy_registry');
16541657
}
16551658
}

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)