Copied!

A normalizer that normalizes a ConstraintViolationListInterface instance.

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

CloneableInstantiable
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 hasCacheableSupportsMethod() : bool
 
    public normalize(?mixed $object, ?string $format = NULL, array $context = []) : array
     
      public supportsNormalization(?mixed $data, ?string $format = NULL) : bool
       
      • param array $context
      Properties
      private $defaultContext
      private $nameConverter
      © 2022 Bruce Wells
      Search Namespaces \ Classes
      Configuration