Skip to content

Commit 981c3a2

Browse files
committed
minor symfony#59174 [FrameworkBundle] Add symfony/json-encoder to dev requirements (alexandre-daubois)
This PR was merged into the 7.3 branch. Discussion ---------- [FrameworkBundle] Add `symfony/json-encoder` to dev requirements | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT This fixes most errors on low-deps (from about 60 to 7), but a few are remaining because of some invalid service definition which certainly has another root cause. They may be addressed in a follow-up PR. Maybe do you have an idea `@mtarld`? Commits ------- 7082e2e [FrameworkBundle] Fix `JsonEncoder` config on low-deps
2 parents 30d8c31 + 7082e2e commit 981c3a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Symfony\Component\DependencyInjection\ContainerBuilder;
2323
use Symfony\Component\HtmlSanitizer\HtmlSanitizer;
2424
use Symfony\Component\HttpClient\HttpClient;
25+
use Symfony\Component\JsonEncoder\JsonEncoder;
2526
use Symfony\Component\Lock\Store\SemaphoreStore;
2627
use Symfony\Component\Mailer\Mailer;
2728
use Symfony\Component\Messenger\MessageBusInterface;
@@ -971,7 +972,7 @@ class_exists(SemaphoreStore::class) && SemaphoreStore::isSupported() ? 'semaphor
971972
'enabled' => !class_exists(FullStack::class) && class_exists(RemoteEvent::class),
972973
],
973974
'json_encoder' => [
974-
'enabled' => false,
975+
'enabled' => !class_exists(FullStack::class) && class_exists(JsonEncoder::class),
975976
'paths' => [],
976977
],
977978
];

src/Symfony/Bundle/FrameworkBundle/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"symfony/workflow": "^6.4|^7.0",
7070
"symfony/yaml": "^6.4|^7.0",
7171
"symfony/property-info": "^6.4|^7.0",
72+
"symfony/json-encoder": "^7.3",
7273
"symfony/uid": "^6.4|^7.0",
7374
"symfony/web-link": "^6.4|^7.0",
7475
"symfony/webhook": "^7.2",

0 commit comments

Comments
 (0)