Skip to content

Commit f603672

Browse files
committed
feature #27430 [PropertyInfo] Add an alias to the property info type extractor (sroze)
This PR was merged into the 4.2-dev branch. Discussion ---------- [PropertyInfo] Add an alias to the property info type extractor | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27139 | License | MIT | Doc PR | ø As spotted in #27139, we only alias the main PropertyInfo interface but we don't alias the other one, gathering only the types (while we implement it). This fixes the "problem" of auto-wiring it. Commits ------- bbbcd46 Add an alias to the property info type extractor
2 parents be1b37f + bbbcd46 commit f603672

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/property_info.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
<argument type="collection" />
1414
<argument type="collection" />
1515
</service>
16+
<service id="Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface" alias="property_info" />
17+
<service id="Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface" alias="property_info" />
1618
<service id="Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface" alias="property_info" />
19+
<service id="Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface" alias="property_info" />
20+
<service id="Symfony\Component\PropertyInfo\PropertyListExtractorInterface" alias="property_info" />
1721

1822
<!-- Extractor -->
1923
<service id="property_info.reflection_extractor" class="Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor">

0 commit comments

Comments
 (0)