8000 [FWBundle] Automatically enable PropertyInfo when using Flex · symfony/symfony@0683f0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0683f0a

Browse files
committed
[FWBundle] Automatically enable PropertyInfo when using Flex
1 parent 155fab6 commit 0683f0a

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