Reference
C
Class

ApiPlatform\GraphQl\Serializer\Exception\ValidationExceptionNormalizer

Normalize validation exceptions.

class ApiPlatform\GraphQl\Serializer\Exception\ValidationExceptionNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface
{
    public __construct(array $exceptionToStatus)
    public normalize($object, null|string $format, array $context): array
    public supportsNormalization($data, null|string $format, array $context): bool
}
class ApiPlatform\GraphQl\Serializer\Exception\ValidationExceptionNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface
{
    public __construct(array $exceptionToStatus)
    public normalize($object, null|string $format, array $context): array
    public supportsNormalization($data, null|string $format, array $context): bool
}

Methods

__construct

public __construct(array $exceptionToStatus)
public __construct(array $exceptionToStatus)

Parameters

exceptionToStatusarray

normalize

Normalizes an object into a set of arrays/scalars.

public normalize($object, null|string $format, array $context): array
public normalize($object, null|string $format, array $context): array

Parameters

object
formatstring
contextarray

Returns

array

supportsNormalization

Checks whether the given class is supported for normalization by this normalizer.

public supportsNormalization($data, null|string $format, array $context): bool
public supportsNormalization($data, null|string $format, array $context): bool

Parameters

data
formatstring
contextarray

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop