References ReadProvider
Reference
C
Class

ApiPlatform\State\Provider\ReadProvider

Retrieves data from the applicable data provider, based on the current IRI, and sets it as a request parameter called data.

class ApiPlatform\State\Provider\ReadProvider implements ApiPlatform\State\ProviderInterface
{
    public __construct($provider, null|`<a href="/docs/main/references/Serializer/SerializerContextBuilderInterface">ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object|array
    public clone($data)
}

Methods

__construct

Parameters

provider`ApiPlatform\State\ProviderInterface`
serializerContextBuilder`ApiPlatform\Serializer\SerializerContextBuilderInterface`

provide

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

Parameters

operation`ApiPlatform\Metadata\Operation`
uriVariablesarray
contextarray

Returns

object
array

clone

public clone($data)

Parameters

data

Returns

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