Skip to content

Commit

Permalink
Wiring of the new PropertyAccessExtractor
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 12, 2019
1 parent 43e9087 commit 540b594
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DependencyInjection/DoctrineExtension.php
Expand Up @@ -25,6 +25,7 @@
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Messenger\Transport\Doctrine\DoctrineTransportFactory;
use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface;
use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface;
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;
use function class_exists;
Expand Down Expand Up @@ -794,6 +795,10 @@ private function loadPropertyInfoExtractor($entityManagerName, ContainerBuilder

$propertyExtractorDefinition->addTag('property_info.list_extractor', ['priority' => -1001]);
$propertyExtractorDefinition->addTag('property_info.type_extractor', ['priority' => -999]);

if (is_a(DoctrineExtractor::class, PropertyAccessExtractorInterface::class, true)) {
$propertyExtractorDefinition->addTag('property_info.access_extractor', ['priority' => -999]);
}
}

/**
Expand Down

0 comments on commit 540b594

Please sign in to comment.