Reference
C
Class

ApiPlatform\Elasticsearch\State\ItemProvider

Item provider for Elasticsearch.

class ApiPlatform\Elasticsearch\State\ItemProvider 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)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
}
class ApiPlatform\Elasticsearch\State\ItemProvider 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)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
}

Methods

__construct

public __construct(Elasticsearch\Client $client, ApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface $documentMetadataFactory, Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer)
public __construct(Elasticsearch\Client $client, ApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface $documentMetadataFactory, Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer)

Parameters

clientElasticsearch\Client
documentMetadataFactoryApiPlatform\Elasticsearch\Metadata\Document\Factory\DocumentMetadataFactoryInterface
denormalizerSymfony\Component\Serializer\Normalizer\DenormalizerInterface

provide

Provides data.

public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object

Parameters

operationApiPlatform\Metadata\Operation
uriVariablesarray
contextarray

Returns

object

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop