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 31
31
<argument type =" service" id =" api_platform.metadata.resource.metadata_factory" />
32
32
<argument >%api_platform.collection.pagination%</argument >
33
33
</service >
34
+ <service id =" ApiPlatform\Core\DataProvider\Pagination" alias =" api_platform.pagination" />
34
35
</services >
35
36
36
37
</container >
Original file line number Diff line number Diff line change 55
55
use ApiPlatform \Core \DataPersister \DataPersisterInterface ;
56
56
use ApiPlatform \Core \DataProvider \CollectionDataProviderInterface ;
57
57
use ApiPlatform \Core \DataProvider \ItemDataProviderInterface ;
58
+ use ApiPlatform \Core \DataProvider \Pagination ;
58
59
use ApiPlatform \Core \DataProvider \SubresourceDataProviderInterface ;
59
60
use ApiPlatform \Core \DataTransformer \DataTransformerInterface ;
60
61
use ApiPlatform \Core \Exception \FilterValidationException ;
@@ -895,6 +896,7 @@ private function getPartialContainerBuilderProphecy()
895
896
'api_platform.property_accessor ' => 'property_accessor ' ,
896
897
'api_platform.property_info ' => 'property_info ' ,
897
898
'api_platform.serializer ' => 'serializer ' ,
899
+ Pagination::class => 'api_platform.pagination ' ,
898
900
IriConverterInterface::class => 'api_platform.iri_converter ' ,
899
901
UrlGeneratorInterface::class => 'api_platform.router ' ,
900
902
SerializerContextBuilderInterface::class => 'api_platform.serializer.context_builder ' ,
You can’t perform that action at this time.
0 commit comments