[FrameworkBundle][PropertyAccess] Use injection for info extractors
This commit is contained in:
parent
3f23a45207
commit
693d4c0a2d
@ -108,7 +108,9 @@ use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface;
|
|||||||
use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface;
|
use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface;
|
||||||
use Symfony\Component\PropertyInfo\PropertyInitializableExtractorInterface;
|
use Symfony\Component\PropertyInfo\PropertyInitializableExtractorInterface;
|
||||||
use Symfony\Component\PropertyInfo\PropertyListExtractorInterface;
|
use Symfony\Component\PropertyInfo\PropertyListExtractorInterface;
|
||||||
|
use Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface;
|
||||||
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
|
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
|
||||||
|
use Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface;
|
||||||
use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader;
|
use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader;
|
||||||
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
|
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
|
||||||
use Symfony\Component\Security\Core\Security;
|
use Symfony\Component\Security\Core\Security;
|
||||||
@ -1381,6 +1383,8 @@ class FrameworkExtension extends Extension
|
|||||||
->replaceArgument(0, $config['magic_call'])
|
->replaceArgument(0, $config['magic_call'])
|
||||||
->replaceArgument(1, $config['throw_exception_on_invalid_index'])
|
->replaceArgument(1, $config['throw_exception_on_invalid_index'])
|
||||||
->replaceArgument(3, $config['throw_exception_on_invalid_property_path'])
|
->replaceArgument(3, $config['throw_exception_on_invalid_property_path'])
|
||||||
|
->replaceArgument(4, new Reference(PropertyReadInfoExtractorInterface::class, ContainerInterface::NULL_ON_INVALID_REFERENCE))
|
||||||
|
->replaceArgument(5, new Reference(PropertyWriteInfoExtractorInterface::class, ContainerInterface::NULL_ON_INVALID_REFERENCE))
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,5 +33,8 @@
|
|||||||
<tag name="property_info.access_extractor" priority="-1000" />
|
<tag name="property_info.access_extractor" priority="-1000" />
|
||||||
<tag name="property_info.initializable_extractor" priority="-1000" />
|
<tag name="property_info.initializable_extractor" priority="-1000" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<service id="Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface" alias="property_info.reflection_extractor" />
|
||||||
|
<service id="Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface" alias="property_info.reflection_extractor" />
|
||||||
</services>
|
</services>
|
||||||
</container>
|
</container>
|
||||||
|
Reference in New Issue
Block a user