mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
prepare recipe for serializer 1.5
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
jms_serializer:
|
||||
visitors:
|
||||
json:
|
||||
options: JSON_PRETTY_PRINT
|
||||
xml:
|
||||
format_output: true
|
||||
@@ -0,0 +1,4 @@
|
||||
jms_serializer:
|
||||
visitors:
|
||||
xml:
|
||||
format_output: false
|
||||
@@ -0,0 +1,22 @@
|
||||
jms_serializer:
|
||||
enable_short_alias: false
|
||||
|
||||
handlers:
|
||||
datetime:
|
||||
default_format: "Y-m-d\\TH:i:sP"
|
||||
array_collection:
|
||||
initialize_excluded: false # suggested false for better performance
|
||||
|
||||
subscribers:
|
||||
doctrine_proxy:
|
||||
initialize_virtual_types: false # suggested false for better performance
|
||||
initialize_excluded: false # suggested false for better performance
|
||||
# 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"
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"bundles": {
|
||||
"JMS\\SerializerBundle\\JMSSerializerBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user