Reference
C
Class

ApiPlatform\Doctrine\Orm\State\CollectionProvider

Collection state provider using the Doctrine ORM.

class ApiPlatform\Doctrine\Orm\State\CollectionProvider 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\Orm\Extension\QueryCollectionExtensionInterface&gt; $collectionExtensions)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): iterable
}
class ApiPlatform\Doctrine\Orm\State\CollectionProvider 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\Orm\Extension\QueryCollectionExtensionInterface&gt; $collectionExtensions)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): iterable
}

Methods

__construct

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

Parameters

resourceMetadataCollectionFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
managerRegistryDoctrine\Persistence\ManagerRegistry
collectionExtensionsarray<int, ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface>

provide

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

Parameters

operationApiPlatform\Metadata\Operation
uriVariablesarray
contextarray

Returns

iterable

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop