Guides
Tutorials
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<int, ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface> $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<int, ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface> $collectionExtensions)
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): iterable
}
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array<int, ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface> $collectionExtensions)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array<int, ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface> $collectionExtensions)
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
managerRegistry | Doctrine\Persistence\ManagerRegistry | |
collectionExtensions | array<int, ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface> |
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): iterable
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): iterable
operation | ApiPlatform\Metadata\Operation | |
uriVariables | array | |
context | array |
iterable