[FrameworkBundle] Fix PropertyInfo registration when using reflection-docblock 3

This commit is contained in:
Kévin Dunglas 2016-02-26 13:51:15 +01:00 committed by Fabien Potencier
parent 48f05ecad2
commit 6d31365850
2 changed files with 5 additions and 2 deletions

View File

@ -1010,7 +1010,7 @@ class FrameworkExtension extends Extension
$loader->load('property_info.xml');
if (class_exists('phpDocumentor\Reflection\ClassReflector')) {
if (class_exists('phpDocumentor\Reflection\DocBlockFactoryInterface')) {
$definition = $container->register('property_info.php_doc_extractor', 'Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor');
$definition->addTag('property_info.description_extractor', array('priority' => -1000));
$definition->addTag('property_info.type_extractor', array('priority' => -1001));

View File

@ -50,7 +50,10 @@
"symfony/validator": "~2.8|~3.0",
"symfony/yaml": "~2.8|~3.0",
"symfony/property-info": "~2.8|~3.0",
"phpdocumentor/reflection": "^1.0.7"
"phpdocumentor/reflection-docblock": "^3.0"
},
"conflict": {
"phpdocumentor/reflection-docblock": "<3.0"
},
"suggest": {
"symfony/console": "For using the console commands",