File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
src/Bridge/Symfony/Bundle/Resources/config
tests/Bridge/Symfony/Bundle/DependencyInjection Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 68
68
<argument type =" service" id =" api_platform.metadata.resource.metadata_factory" />
69
69
<argument >%api_platform.formats%</argument >
70
70
</service >
71
+ <service id =" ApiPlatform\Core\Api\OperationAwareFormatsProviderInterface" alias =" api_platform.formats_provider" />
71
72
72
73
<!-- Serializer -->
73
74
Original file line number Diff line number Diff line change 15
15
16
16
use ApiPlatform \Core \Api \FilterInterface ;
17
17
use ApiPlatform \Core \Api \IriConverterInterface ;
18
+ use ApiPlatform \Core \Api \OperationAwareFormatsProviderInterface ;
18
19
use ApiPlatform \Core \Api \ResourceClassResolverInterface ;
19
20
use ApiPlatform \Core \Api \UrlGeneratorInterface ;
20
21
use ApiPlatform \Core \Bridge \Doctrine \MongoDbOdm \Extension \AggregationCollectionExtensionInterface ;
@@ -831,6 +832,7 @@ private function getPartialContainerBuilderProphecy()
831
832
ResourceClassResolverInterface::class => 'api_platform.resource_class_resolver ' ,
832
833
PropertyFilter::class => 'api_platform.serializer.property_filter ' ,
833
834
GroupFilter::class => 'api_platform.serializer.group_filter ' ,
835
+ OperationAwareFormatsProviderInterface::class => 'api_platform.formats_provider ' ,
834
836
];
835
837
836
838
foreach ($ aliases as $ alias => $ service ) {
You can’t perform that action at this time.
0 commit comments