Copied!

A normalizer that normalizes a ConstraintViolationListInterface instance.

This Normalizer implements RFC7807 {@link https://tools.ietf.org/html/rfc7807}.

CloneableFinalInstantiable
Constants
public Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer::INSTANCE = 'instance'
public Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer::PAYLOAD_FIELDS = 'payload_fields'
public Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer::STATUS = 'status'
public Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer::TITLE = 'title'
public Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer::TYPE = 'type'
Methods
public __construct(array $defaultContext = [], ?Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter = NULL)
public getSupportedTypes(?string $format) : array
public normalize(?mixed $object, ?string $format = NULL, array $context = []) : array
public supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool
Properties
private readonly array $defaultContext
private readonly ?Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration