52 lines
2.3 KiB
YAML
52 lines
2.3 KiB
YAML
name: MapRequestPayload
|
|
class_comment: null
|
|
dependencies:
|
|
- name: Response
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Response
|
|
- name: RequestPayloadValueResolver
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver
|
|
- name: ArgumentMetadata
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
|
|
- name: GroupSequence
|
|
type: class
|
|
source: Symfony\Component\Validator\Constraints\GroupSequence
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: acceptFormat
|
|
default: 'null'
|
|
- name: serializationContext
|
|
default: '[]'
|
|
- name: validationGroups
|
|
default: 'null'
|
|
- name: resolver
|
|
default: RequestPayloadValueResolver::class
|
|
- name: validationFailedStatusCode
|
|
default: Response::HTTP_UNPROCESSABLE_ENTITY
|
|
- name: type
|
|
default: 'null'
|
|
comment: "# * Controller parameter tag to map the request content to typed object\
|
|
\ and validate it.\n# *\n# * @author Konstantin Myakshin <molodchick@gmail.com>\n\
|
|
# */\n# #[\\Attribute(\\Attribute::TARGET_PARAMETER)]\n# class MapRequestPayload\
|
|
\ extends ValueResolver\n# {\n# public ArgumentMetadata $metadata;\n# \n# /**\n\
|
|
# * @param array<string>|string|null $acceptFormat \
|
|
\ The payload formats to accept (i.e. \"json\", \"xml\")\n# * @param array<string,\
|
|
\ mixed> $serializationContext The serialization context\
|
|
\ to use when deserializing the payload\n# * @param string|GroupSequence|array<string>|null\
|
|
\ $validationGroups The validation groups to use when validating the\
|
|
\ query string mapping\n# * @param class-string $resolver\
|
|
\ The class name of the resolver to use\n# * @param int \
|
|
\ $validationFailedStatusCode The HTTP code to\
|
|
\ return if the validation fails\n# * @param class-string|string|null \
|
|
\ $type The element type for array deserialization"
|
|
traits:
|
|
- Symfony\Component\HttpFoundation\Response
|
|
- Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver
|
|
- Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
|
|
- Symfony\Component\Validator\Constraints\GroupSequence
|
|
interfaces: []
|