Browse Source

added visitors configuration to doc

mattw 13 năm trước cách đây
mục cha
commit
00dc5763dd
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      Resources/doc/configuration.rst

+ 10 - 1
Resources/doc/configuration.rst

@@ -52,7 +52,16 @@ values:
                         path: "@MyFooBundle/Resources/config/serializer"
                     another-name:
                         namespace_prefix: "My\\BarBundle"
-                        path: "@MyBarBundle/Resources/config/serializer"    
+                        path: "@MyBarBundle/Resources/config/serializer"
+
+            visitors:
+                json:
+                    options: 0 # json_encode options bitmask
+                    serialize_null: false # whether to preserve keys with null values
+                xml:
+                    serialize_null: false
+                yaml:
+                    serialize_null: false
 
     .. code-block :: xml