Skip to content

Commit 76a74c3

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix CS Compatibility with doctrine/annotations 2 [Console] Fix a test when pcntl is not available (following #48329) [FrameworkBundle] fix: fix typo about help
2 parents ad61578 + 79dba90 commit 76a74c3

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Command/ConfigDumpReferenceCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9797

9898
$errorIo->comment([
9999
'Provide the name of a bundle as the first argument of this command to dump its default configuration. (e.g. <comment>config:dump-reference FrameworkBundle</comment>)',
100-
'For dumping a specific option, add its path as the second argument of this command. (e.g. <comment>config:dump-reference FrameworkBundle profiler.matcher</comment> to dump the <comment>framework.profiler.matcher</comment> configuration)',
100+
'For dumping a specific option, add its path as the second argument of this command. (e.g. <comment>config:dump-reference FrameworkBundle http_client.default_options</comment> to dump the <comment>framework.http_client.default_options</comment> configuration)',
101101
]);
102102

103103
return 0;

DependencyInjection/FrameworkExtension.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,8 +1570,12 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
15701570
$loader->load('annotations.php');
15711571

15721572
if (!method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
1573-
$container->getDefinition('annotations.dummy_registry')
1574-
->setMethodCalls([['registerLoader', ['class_exists']]]);
1573+
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
1574+
$container->getDefinition('annotations.dummy_registry')
1575+
->setMethodCalls([['registerLoader', ['class_exists']]]);
1576+
} else {
1577+
$container->removeDefinition('annotations.dummy_registry');
1578+
}
15751579
}
15761580

15771581
if ('none' === $config['cache']) {

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'), // dummy arg to register class_exists as annotation loader only when required
28+
service('annotations.dummy_registry')->ignoreOnInvalid(), // dummy arg to register class_exists as annotation loader only when required
2929
])
3030

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"symfony/routing": "^5.4|^6.0"
3434
},
3535
"require-dev": {
36-
"doctrine/annotations": "^1.13.1",
36+
"doctrine/annotations": "^1.13.1|^2",
3737
"doctrine/persistence": "^1.3|^2|^3",
3838
"symfony/asset": "^5.4|^6.0",
3939
"symfony/browser-kit": "^5.4|^6.0",

0 commit comments

Comments
 (0)