api/symfony/Component/HttpKernel/Attribute/MapQueryString.yaml
2024-09-26 02:03:21 -07:00

45 lines
2 KiB
YAML

name: MapQueryString
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: serializationContext
default: '[]'
- name: validationGroups
default: 'null'
- name: resolver
default: RequestPayloadValueResolver::class
- name: validationFailedStatusCode
default: Response::HTTP_NOT_FOUND
comment: "# * Controller parameter tag to map the query string of the request to\
\ typed object and validate it.\n# *\n# * @author Konstantin Myakshin <molodchick@gmail.com>\n\
# */\n# #[\\Attribute(\\Attribute::TARGET_PARAMETER)]\n# class MapQueryString\
\ extends ValueResolver\n# {\n# public ArgumentMetadata $metadata;\n# \n# /**\n\
# * @param array<string, mixed> $serializationContext \
\ The serialization context to use when deserializing the query string\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"
traits:
- Symfony\Component\HttpFoundation\Response
- Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver
- Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
- Symfony\Component\Validator\Constraints\GroupSequence
interfaces: []