File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
src/Symfony/Bundle/FrameworkBundle
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 2121use Symfony \Component \Form \Form ;
2222use Symfony \Component \Lock \Lock ;
2323use Symfony \Component \Lock \Store \SemaphoreStore ;
24- use Symfony \Component \PropertyInfo \PropertyInfoExtractor ;
24+ use Symfony \Component \PropertyInfo \PropertyInfoExtractorInterface ;
2525use Symfony \Component \Security \Csrf \CsrfTokenManagerInterface ;
2626use Symfony \Component \Serializer \Serializer ;
2727use Symfony \Component \Translation \Translator ;
@@ -824,7 +824,7 @@ private function addPropertyInfoSection(ArrayNodeDefinition $rootNode)
824824 ->children ()
825825 ->arrayNode ('property_info ' )
826826 ->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 ' }()
828828 ->end ()
829829 ->end ()
830830 ;
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ protected static function getBundleDefaultConfig()
335335 'throw_exception_on_invalid_index ' => false ,
336336 ),
337337 'property_info ' => array (
338- 'enabled ' => false ,
338+ 'enabled ' => ! class_exists (FullStack::class) ,
339339 ),
340340 'router ' => array (
341341 'enabled ' => false ,
Original file line number Diff line number Diff line change @@ -979,12 +979,6 @@ public function testSerializerServiceIsNotRegisteredWhenDisabled()
979979 $ this ->assertFalse ($ container ->hasDefinition ('serializer ' ));
980980 }
981981
982- public function testPropertyInfoDisabled ()
983- {
984- $ container = $ this ->createContainerFromFile ('default_config ' );
985- $ this ->assertFalse ($ container ->has ('property_info ' ));
986- }
987-
988982 public function testPropertyInfoEnabled ()
989983 {
990984 $ container = $ this ->createContainerFromFile ('property_info ' );
You can’t perform that action at this time.
0 commit comments