References ValidationExceptionNormalizer
Reference
C
Class

ApiPlatform\Symfony\Validator\Serializer\ValidationExceptionNormalizer

class ApiPlatform\Symfony\Validator\Serializer\ValidationExceptionNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, ApiPlatform\Serializer\CacheableSupportsMethodInterface
{
    public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, null|Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter)
    public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
    public supportsNormalization($data, null|string $format, array $context): bool
    public hasCacheableSupportsMethod(): bool
    public getSupportedTypes($format): array
}

Methods

__construct

public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, null|Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter)

Parameters

decoratedSymfony\Component\Serializer\Normalizer\NormalizerInterface
nameConverterSymfony\Component\Serializer\NameConverter\NameConverterInterface

normalize

public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool

Parameters

object
formatstring
contextarray

Returns

ArrayObject
array
string
int
float
bool

supportsNormalization

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

Parameters

data
formatstring
contextarray

Returns

bool

hasCacheableSupportsMethod

public hasCacheableSupportsMethod(): bool

Returns

bool

getSupportedTypes

public getSupportedTypes($format): array

Parameters

format

Returns

array

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