[FWBundle] Automatically enable PropertyInfo when using Flex

This commit is contained in:
Kévin Dunglas 2018-10-05 13:29:17 +02:00
parent 155fab6e6f
commit 0683f0ac82
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Form\Form;
use Symfony\Component\Lock\Lock;
use Symfony\Component\Lock\Store\SemaphoreStore;
use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Translation\Translator;
@ -823,7 +824,7 @@ class Configuration implements ConfigurationInterface
->children()
->arrayNode('property_info')
->info('Property info configuration')
->canBeEnabled()
->{!class_exists(FullStack::class) && class_exists(PropertyInfoExtractor::class) ? 'canBeDisabled' : 'canBeEnabled'}()
->end()
->end()
;