Closed
Description
Symfony version(s) affected: 4.2.2
Description
The framework changed the way tagged service are injected
How to reproduce
We are using API Platform, and it uses the following code:
<service id="api_platform.subresource_data_provider" class="ApiPlatform\Core\DataProvider\ChainSubresourceDataProvider">
<argument type="tagged" tag="api_platform.subresource_data_provider" />
</service>
On 4.2.1 when I dump the injected service I have:
array:6 [▼
0 => AggregatedLogDataProvider {#854 ▶}
# ....
5 => CollectionDataProvider {#1117 ▶}
]
array:6 [▼
0 => CollectionDataProvider {#6297 ▶}
1 => AggregatedLogDataProvider {#1071 ▶}
# ...
]
Note: CollectionDataProvider
is the default Data Provider from API Platform, and AggregatedLogDataProvider
, #...
are my Data Provider
Possible Solution
Patch all third party relying on this feature or fix Symfony.
Note: I tried to change the priority of the default Data Provider in APIP, and it fixes my issue.