Reference
C
Class

ApiPlatform\GraphQl\Resolver\Stage\ValidateStage

Validate stage of GraphQL resolvers.

class ApiPlatform\GraphQl\Resolver\Stage\ValidateStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/ValidateStageInterface">ApiPlatform\GraphQl\Resolver\Stage\ValidateStageInterface</a>`
{
    public __construct(ApiPlatform\Validator\ValidatorInterface $validator)
    public __invoke(object $object, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): null
}
class ApiPlatform\GraphQl\Resolver\Stage\ValidateStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/ValidateStageInterface">ApiPlatform\GraphQl\Resolver\Stage\ValidateStageInterface</a>`
{
    public __construct(ApiPlatform\Validator\ValidatorInterface $validator)
    public __invoke(object $object, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): null
}

Methods

__construct

public __construct(ApiPlatform\Validator\ValidatorInterface $validator)
public __construct(ApiPlatform\Validator\ValidatorInterface $validator)

Parameters

validatorApiPlatform\Validator\ValidatorInterface

__invoke

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

Parameters

objectobject
resourceClassstring
operationApiPlatform\Metadata\GraphQl\Operation
contextarray

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop