8000 bug #28735 [FWBundle] Automatically enable PropertyInfo when using Fl… · symfony/symfony@dd56372 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd56372

Browse files
committed
bug #28735 [FWBundle] Automatically enable PropertyInfo when using Flex (dunglas)
This PR was merged into the 3.4 branch. Discussion ---------- [FWBundle] Automatically enable PropertyInfo when using Flex | Q | A | ------------- | --- | Branch? | 3.4 Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | n/a | License | MIT | Doc PR | n/a Automatically enabling PropertyInfo when using Flex and when the component is installed has been forgotten when releasing 3.4. It makes it very hard to debug why some features of the serializer are sometimes not working properly. Commits ------- 0683f0a [FWBundle] Automatically enable PropertyInfo when using Flex
2 parents 63d287b + 0683f0a commit dd56372

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Symfony\Component\Form\Form;
2222
use Symfony\Component\Lock\Lock;
2323
use Symfony\Component\Lock\Store\SemaphoreStore;
24+
use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
2425
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
2526
use Symfony\Component\Serializer\Serializer;
2627
use Symfony\Component\Translation\Translator;
@@ -823,7 +824,7 @@ private function addPropertyInfoSection(ArrayNodeDefinition $rootNode)
823824
->children()
824825
->arrayNode('property_info')
825826
->info('Property info configuration')
826-
->canBeEnabled()
827+
->{!class_exists(FullStack::class) && class_exists(PropertyInfoExtractor::class) ? 'canBeDisabled' : 'canBeEnabled'}()
827828
->end()
828829
->end()
829830
;

0 commit comments

Comments
 (0)
0