Normalizes errors according to the API Problem spec (RFC 7807).
- see https://tools.ietf.org/html/rfc7807
- author Kévin Dunglas
- author Yonel Ceruto
CloneableInstantiable
| Constants |
| public Symfony |
| public Symfony |
| public Symfony |
| 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 |
| public supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool |
| Properties |
| protected ?Symfony |
| Properties |
| private bool $debug |
| private array $defaultContext |
| private ?Symfony\Contracts\Translation\TranslatorInterface $translator |