mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Added request-dto-mapper-bundle recipe (#1438)
This commit is contained in:
@@ -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%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user