mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
Use when@env for jms serializer configuration (#1396)
This commit is contained in:
committed by
GitHub
parent
de070a0f44
commit
01511fac73
@@ -0,0 +1,30 @@
|
|||||||
|
jms_serializer:
|
||||||
|
visitors:
|
||||||
|
xml_serialization:
|
||||||
|
format_output: '%kernel.debug%'
|
||||||
|
# metadata:
|
||||||
|
# auto_detection: false
|
||||||
|
# directories:
|
||||||
|
# any-name:
|
||||||
|
# namespace_prefix: "My\\FooBundle"
|
||||||
|
# path: "@MyFooBundle/Resources/config/serializer"
|
||||||
|
# another-name:
|
||||||
|
# namespace_prefix: "My\\BarBundle"
|
||||||
|
# path: "@MyBarBundle/Resources/config/serializer"
|
||||||
|
|
||||||
|
when@prod:
|
||||||
|
jms_serializer:
|
||||||
|
visitors:
|
||||||
|
json_serialization:
|
||||||
|
options:
|
||||||
|
- JSON_UNESCAPED_SLASHES
|
||||||
|
- JSON_PRESERVE_ZERO_FRACTION
|
||||||
|
|
||||||
|
when@dev:
|
||||||
|
jms_serializer:
|
||||||
|
visitors:
|
||||||
|
json_serialization:
|
||||||
|
options:
|
||||||
|
- JSON_PRETTY_PRINT
|
||||||
|
- JSON_UNESCAPED_SLASHES
|
||||||
|
- JSON_PRESERVE_ZERO_FRACTION
|
||||||
8
jms/serializer-bundle/4.0/manifest.json
Normal file
8
jms/serializer-bundle/4.0/manifest.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"bundles": {
|
||||||
|
"JMS\\SerializerBundle\\JMSSerializerBundle": ["all"]
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user