26
26
use ApiPlatform \Core \DataPersister \DataPersisterInterface ;
27
27
use ApiPlatform \Core \DataProvider \CollectionDataProviderInterface ;
28
28
use ApiPlatform \Core \DataProvider \ItemDataProviderInterface ;
29
+ use ApiPlatform \Core \DataProvider \Pagination as LegacyPagination ;
29
30
use ApiPlatform \Core \DataProvider \SubresourceDataProviderInterface ;
30
31
use ApiPlatform \Core \Metadata \Property \Factory \PropertyMetadataFactoryInterface as LegacyPropertyMetadataFactoryInterface ;
31
32
use ApiPlatform \Core \Metadata \Property \Factory \PropertyNameCollectionFactoryInterface as LegacyPropertyNameCollectionFactoryInterface ;
@@ -1133,7 +1134,8 @@ private function getPartialContainerBuilderProphecy($configuration = null)
1133
1134
'api_platform.operation_path_resolver.generator ' ,
1134
1135
'api_platform.operation_path_resolver.router ' ,
1135
1136
'api_platform.operation_path_resolver.underscore ' ,
1136
- 'api_platform.pagination ' ,
1137
+ 'api_platform.pagination.legacy ' ,
1138
+ 'api_platform.pagination.next ' ,
1137
1139
'api_platform.pagination_options ' ,
1138
1140
'api_platform.path_segment_name_generator.dash ' ,
1139
1141
'api_platform.path_segment_name_generator.underscore ' ,
@@ -1199,6 +1201,7 @@ private function getPartialContainerBuilderProphecy($configuration = null)
1199
1201
'api_platform.metadata.resource.name_collection_factory ' => 'api_platform.metadata.resource.name_collection_factory.xml ' ,
1200
1202
'api_platform.operation_path_resolver ' => 'api_platform.operation_path_resolver.router ' ,
1201
1203
'api_platform.operation_path_resolver.default ' => 'api_platform.operation_path_resolver.underscore ' ,
1204
+ 'api_platform.pagination ' => 'api_platform.pagination.next ' ,
1202
1205
'api_platform.path_segment_name_generator ' => 'api_platform.path_segment_name_generator.underscore ' ,
1203
1206
'api_platform.property_accessor ' => 'property_accessor ' ,
1204
1207
'api_platform.property_info ' => 'property_info ' ,
@@ -1215,7 +1218,8 @@ private function getPartialContainerBuilderProphecy($configuration = null)
1215
1218
LegacyPropertyNameCollectionFactoryInterface::class => 'api_platform.metadata.property.name_collection_factory ' ,
1216
1219
NotFoundAction::class => 'api_platform.action.not_found ' ,
1217
1220
OperationAwareFormatsProviderInterface::class => 'api_platform.formats_provider ' ,
1218
- Pagination::class => 'api_platform.pagination ' ,
1221
+ LegacyPagination::class => 'api_platform.pagination.legacy ' ,
1222
+ Pagination::class => 'api_platform.pagination.next ' ,
1219
1223
PaginationOptions::class => 'api_platform.pagination_options ' ,
1220
1224
ProcessorInterface::class => 'api_platform.state_processor ' ,
1221
1225
PropertyFilter::class => 'api_platform.serializer.property_filter ' ,
0 commit comments