Copied!

Normalizes errors according to the API Problem spec (RFC 7807).

CloneableInstantiable
Constants
public Symfony\Component\Serializer\Normalizer\ProblemNormalizer::STATUS = 'status'
public Symfony\Component\Serializer\Normalizer\ProblemNormalizer::TITLE = 'title'
public Symfony\Component\Serializer\Normalizer\ProblemNormalizer::TYPE = 'type'
Methods
public __construct(bool $debug = false, array $defaultContext = [], ?Symfony\Contracts\Translation\TranslatorInterface $translator = NULL)
public getSupportedTypes(?string $format) : array
public normalize(?mixed $object, ?string $format = NULL, array $context = []) : array
public setSerializer(Symfony\Component\Serializer\SerializerInterface $serializer) : void
public supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool
Properties
protected ?Symfony\Component\Serializer\SerializerInterface $serializer = NULL
Properties
private bool $debug
private array $defaultContext
private ?Symfony\Contracts\Translation\TranslatorInterface $translator
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration