References CollectionProvider
Reference
C
Class

ApiPlatform\Doctrine\Orm\State\CollectionProvider

Collection state provider using the Doctrine ORM.

class ApiPlatform\Doctrine\Orm\State\CollectionProvider implements ApiPlatform\State\ProviderInterface
{
    public __construct($resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array<int, `<a href="/docs/main/references/Doctrine/Orm/Extension/QueryCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface> $collectionExtensions, null|Psr\Container\ContainerInterface $handleLinksLocator)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): iterable
}

Methods

__construct

Parameters

resourceMetadataCollectionFactory`ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface`
managerRegistryDoctrine\Persistence\ManagerRegistry
collectionExtensionsarray<int, `ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface`>
handleLinksLocatorPsr\Container\ContainerInterface

provide

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

Parameters

operation`ApiPlatform\Metadata\Operation`
uriVariablesarray
contextarray

Returns

iterable

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop