|
69 | 69 | use Symfony\Component\PropertyAccess\PropertyAccessor;
|
70 | 70 | use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface;
|
71 | 71 | use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface;
|
| 72 | +use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface; |
72 | 73 | use Symfony\Component\PropertyInfo\PropertyListExtractorInterface;
|
73 | 74 | use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
|
74 | 75 | use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader;
|
@@ -263,7 +264,7 @@ public function load(array $configs, ContainerBuilder $container)
|
263 | 264 | }
|
264 | 265 |
|
265 | 266 | if ($this->isConfigEnabled($container, $config['property_info'])) {
|
266 |
| - $this->registerPropertyInfoConfiguration($config['property_info'], $container, $loader); |
| 267 | + $this->registerPropertyInfoConfiguration($container, $loader); |
267 | 268 | }
|
268 | 269 |
|
269 | 270 | if ($this->isConfigEnabled($container, $config['lock'])) {
|
@@ -1352,8 +1353,12 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
|
1352 | 1353 | }
|
1353 | 1354 | }
|
1354 | 1355 |
|
1355 |
| - private function registerPropertyInfoConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader) |
| 1356 | + private function registerPropertyInfoConfiguration(ContainerBuilder $container, XmlFileLoader $loader) |
1356 | 1357 | {
|
| 1358 | + if (!interface_exists(PropertyInfoExtractorInterface::class)) { |
| 1359 | + throw new LogicException('PropertyInfo support cannot be enabled as the PropertyInfo component is not installed. Try running "composer require symfony/property-info".'); |
| 1360 | + } |
| 1361 | + |
1357 | 1362 | $loader->load('property_info.xml');
|
1358 | 1363 |
|
1359 | 1364 | if (interface_exists('phpDocumentor\Reflection\DocBlockFactoryInterface')) {
|
|
0 commit comments