Reference
C
Class

ApiPlatform\GraphQl\Resolver\Stage\DeserializeStage

Deserialize stage of GraphQL resolvers.

class ApiPlatform\GraphQl\Resolver\Stage\DeserializeStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/DeserializeStageInterface">ApiPlatform\GraphQl\Resolver\Stage\DeserializeStageInterface</a>`
{
    public __construct(Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
    public __invoke(null|object $objectToPopulate, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object
}
class ApiPlatform\GraphQl\Resolver\Stage\DeserializeStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/DeserializeStageInterface">ApiPlatform\GraphQl\Resolver\Stage\DeserializeStageInterface</a>`
{
    public __construct(Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
    public __invoke(null|object $objectToPopulate, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object
}

Methods

__construct

public __construct(Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
public __construct(Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)

Parameters

denormalizerSymfony\Component\Serializer\Normalizer\DenormalizerInterface
serializerContextBuilderApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface

__invoke

public __invoke(null|object $objectToPopulate, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object
public __invoke(null|object $objectToPopulate, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object

Parameters

objectToPopulateobject
resourceClassstring
operationApiPlatform\Metadata\GraphQl\Operation
contextarray

Returns

object

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop