Guides
Tutorials
Collection provider for Elasticsearch.
class ApiPlatform\Elasticsearch\State\CollectionProvider implements `<a href="/docs/reference/State/ProviderInterface">ApiPlatform\State\ProviderInterface</a>`
{
public __construct(Elasticsearch\Client $client, ApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface $documentMetadataFactory, Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\State\Pagination\Pagination $pagination, array<int, ApiPlatform\Elasticsearch\Extension\RequestBodySearchCollectionExtensionInterface> $collectionExtensions)
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\Elasticsearch\Paginator
}
class ApiPlatform\Elasticsearch\State\CollectionProvider implements `<a href="/docs/reference/State/ProviderInterface">ApiPlatform\State\ProviderInterface</a>`
{
public __construct(Elasticsearch\Client $client, ApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface $documentMetadataFactory, Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\State\Pagination\Pagination $pagination, array<int, ApiPlatform\Elasticsearch\Extension\RequestBodySearchCollectionExtensionInterface> $collectionExtensions)
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\Elasticsearch\Paginator
}
public __construct(Elasticsearch\Client $client, ApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface $documentMetadataFactory, Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\State\Pagination\Pagination $pagination, array<int, ApiPlatform\Elasticsearch\Extension\RequestBodySearchCollectionExtensionInterface> $collectionExtensions)
public __construct(Elasticsearch\Client $client, ApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface $documentMetadataFactory, Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\State\Pagination\Pagination $pagination, array<int, ApiPlatform\Elasticsearch\Extension\RequestBodySearchCollectionExtensionInterface> $collectionExtensions)
client | Elasticsearch\Client | |
documentMetadataFactory | ApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface | |
denormalizer | Symfony\Component\Serializer\Normalizer\DenormalizerInterface | |
pagination | ApiPlatform\State\Pagination\Pagination | |
collectionExtensions | array<int, ApiPlatform\Elasticsearch\Extension\RequestBodySearchCollectionExtensionInterface> |
Provides data.
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\Elasticsearch\Paginator
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\Elasticsearch\Paginator
operation | ApiPlatform\Metadata\Operation | |
uriVariables | array | |
context | array |