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 hasCacheableSupportsMethod() : bool
 
  • deprecated since Symfony 6.3, use "getSupportedTypes()" instead
public normalize(?mixed $object, ?string $format = NULL, array $context = []) : array
public setSerializer(Symfony\Component\Serializer\SerializerInterface $serializer)
 
  • return void
public supportsNormalization(?mixed $data, ?string $format = NULL) : bool
 
  • param array $context
Properties
protected $serializer = NULL
 
  • var \SerializerInterface
Properties
private bool $debug
private array $defaultContext
private ?Symfony\Contracts\Translation\TranslatorInterface $translator
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration