Guides
Tutorials
Item state provider using the Doctrine ORM.
class ApiPlatform\Doctrine\Orm\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<int, ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface> $itemExtensions)
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
}
class ApiPlatform\Doctrine\Orm\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<int, ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface> $itemExtensions)
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
}
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array<int, ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface> $itemExtensions)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Doctrine\Persistence\ManagerRegistry $managerRegistry, array<int, ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface> $itemExtensions)
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
managerRegistry | Doctrine\Persistence\ManagerRegistry | |
itemExtensions | array<int, ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface> |
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object
operation | ApiPlatform\Metadata\Operation | |
uriVariables | array | |
context | array |
object