File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 21
21
use Symfony \Component \Form \Form ;
22
22
use Symfony \Component \Lock \Lock ;
23
23
use Symfony \Component \Lock \Store \SemaphoreStore ;
24
- use Symfony \Component \PropertyInfo \PropertyInfoExtractor ;
24
+ use Symfony \Component \PropertyInfo \PropertyInfoExtractorInterface ;
25
25
use Symfony \Component \Security \Csrf \CsrfTokenManagerInterface ;
26
26
use Symfony \Component \Serializer \Serializer ;
27
27
use Symfony \Component \Translation \Translator ;
@@ -824,7 +824,7 @@ private function addPropertyInfoSection(ArrayNodeDefinition $rootNode)
824
824
->children ()
825
825
->arrayNode ('property_info ' )
826
826
->info ('Property info configuration ' )
827
- ->{!class_exists (FullStack::class) && class_exists (PropertyInfoExtractor ::class) ? 'canBeDisabled ' : 'canBeEnabled ' }()
827
+ ->{!class_exists (FullStack::class) && interface_exists (PropertyInfoExtractorInterface ::class) ? 'canBeDisabled ' : 'canBeEnabled ' }()
828
828
->end ()
829
829
->end ()
830
830
;
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ protected static function getBundleDefaultConfig()
335
335
'throw_exception_on_invalid_index ' => false ,
336
336
),
337
337
'property_info ' => array (
338
- 'enabled ' => false ,
338
+ 'enabled ' => ! class_exists (FullStack::class) ,
339
339
),
340
340
'router ' => array (
341
341
'enabled ' => false ,
Original file line number Diff line number Diff line change @@ -979,12 +979,6 @@ public function testSerializerServiceIsNotRegisteredWhenDisabled()
979
979
$ this ->assertFalse ($ container ->hasDefinition ('serializer ' ));
980
980
}
981
981
982
- public function testPropertyInfoDisabled ()
983
- {
984
- $ container = $ this ->createContainerFromFile ('default_config ' );
985
- $ this ->assertFalse ($ container ->has ('property_info ' ));
986
- }
987
-
988
982
public function testPropertyInfoEnabled ()
989
983
{
990
984
$ container = $ this ->createContainerFromFile ('property_info ' );
You can’t perform that action at this time.
0 commit comments