Reference
C
Class

ApiPlatform\Doctrine\Odm\State\ItemProvider

Item state provider using the Doctrine ODM.

class ApiPlatform\Doctrine\Odm\State\ItemProvider implements `<a href="/docs/reference/State/ProviderInterface">ApiPlatform\State\ProviderInterface</a>`
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array&lt;int, ApiPlatform\Doctrine\Odm\Extension\AggregationItemExtensionInterface&gt; $itemExtensions)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
}
class ApiPlatform\Doctrine\Odm\State\ItemProvider implements `<a href="/docs/reference/State/ProviderInterface">ApiPlatform\State\ProviderInterface</a>`
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array&lt;int, ApiPlatform\Doctrine\Odm\Extension\AggregationItemExtensionInterface&gt; $itemExtensions)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
}

Methods

__construct

public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array&lt;int, ApiPlatform\Doctrine\Odm\Extension\AggregationItemExtensionInterface&gt; $itemExtensions)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array&lt;int, ApiPlatform\Doctrine\Odm\Extension\AggregationItemExtensionInterface&gt; $itemExtensions)

Parameters

resourceMetadataCollectionFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
managerRegistryDoctrine\Persistence\ManagerRegistry
itemExtensionsarray<int, ApiPlatform\Doctrine\Odm\Extension\AggregationItemExtensionInterface>

provide

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