Added request-dto-mapper-bundle recipe (#1438)

This commit is contained in:
Artyum
2022-12-17 17:55:46 +01:00
committed by GitHub
parent 2d332654fe
commit 6ec0e16243
2 changed files with 37 additions and 0 deletions
@@ -0,0 +1,29 @@
# Read the documentation at https://github.com/artyuum/request-dto-mapper-bundle
artyum_request_dto_mapper:
# Used if the attribute does not specify any (must be a FQCN implementing "\Artyum\RequestDtoMapperBundle\Extractor\ExtractorInterface").
default_extractor: null # Example: Artyum\RequestDtoMapperBundle\Extractor\JsonExtractor
# The configuration related to the denormalizer (https://symfony.com/doc/current/components/serializer.html).
denormalizer:
# Used when mapping the request data to the DTO if the attribute does not set any.
default_options: []
# Used when mapping the request data to the DTO (merged with the values passed by the attribute or "default_options").
additional_options: []
# The configuration related to the validator (https://symfony.com/doc/current/validation.html).
validation:
# Whether to validate the DTO after mapping it.
enabled: false
# Used when validating the DTO if the attribute does not set any.
default_groups: []
# Used when validating the DTO (merged with the values passed by the attribute or "default_groups").
additional_groups: []
# Whether to throw an exception if the DTO validation failed (constraint violations).
throw_on_violation: true
@@ -0,0 +1,8 @@
{
"bundles": {
"Artyum\\RequestDtoMapperBundle\\ArtyumRequestDtoMapperBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}