api/symfony/Component/Serializer/Normalizer/ProblemNormalizer.yaml
2024-09-26 02:03:21 -07:00

82 lines
2.5 KiB
YAML

name: ProblemNormalizer
class_comment: "# * Normalizes errors according to the API Problem spec (RFC 7807).\n\
# *\n# * @see https://tools.ietf.org/html/rfc7807\n# *\n# * @author K\xE9vin Dunglas\
\ <dunglas@gmail.com>\n# * @author Yonel Ceruto <yonelceruto@gmail.com>"
dependencies:
- name: FlattenException
type: class
source: Symfony\Component\ErrorHandler\Exception\FlattenException
- name: HttpExceptionInterface
type: class
source: Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- name: MessageValidationFailedException
type: class
source: Symfony\Component\Messenger\Exception\ValidationFailedException
- name: InvalidArgumentException
type: class
source: Symfony\Component\Serializer\Exception\InvalidArgumentException
- name: PartialDenormalizationException
type: class
source: Symfony\Component\Serializer\Exception\PartialDenormalizationException
- name: SerializerAwareInterface
type: class
source: Symfony\Component\Serializer\SerializerAwareInterface
- name: SerializerAwareTrait
type: class
source: Symfony\Component\Serializer\SerializerAwareTrait
- name: ValidationFailedException
type: class
source: Symfony\Component\Validator\Exception\ValidationFailedException
- name: TranslatorInterface
type: class
source: Symfony\Contracts\Translation\TranslatorInterface
- name: SerializerAwareTrait
type: class
source: SerializerAwareTrait
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: debug
default: 'false'
- name: defaultContext
default: '[]'
- name: translator
default: 'null'
comment: null
- name: getSupportedTypes
visibility: public
parameters:
- name: format
comment: null
- name: normalize
visibility: public
parameters:
- name: object
- name: format
default: 'null'
- name: context
default: '[]'
comment: null
- name: supportsNormalization
visibility: public
parameters:
- name: data
- name: format
default: 'null'
- name: context
default: '[]'
comment: null
traits:
- Symfony\Component\ErrorHandler\Exception\FlattenException
- Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- Symfony\Component\Serializer\Exception\InvalidArgumentException
- Symfony\Component\Serializer\Exception\PartialDenormalizationException
- Symfony\Component\Serializer\SerializerAwareInterface
- Symfony\Component\Serializer\SerializerAwareTrait
- Symfony\Component\Validator\Exception\ValidationFailedException
- Symfony\Contracts\Translation\TranslatorInterface
- SerializerAwareTrait
interfaces:
- NormalizerInterface