File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -591,6 +591,8 @@ with the serializer enabled.
591
591
.. versionadded :: 3.2
592
592
The ``YamlEncoder `` and ``CsvEncoder `` encoders were introduced in Symfony 3.2
593
593
594
+ .. _component-serializer-handling-circular-references :
595
+
594
596
Handling Circular References
595
597
----------------------------
596
598
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ Configuration
104
104
* :ref: `cache <reference-serializer-cache >`
105
105
* :ref: `enable_annotations <reference-serializer-enable_annotations >`
106
106
* :ref: `name_converter <reference-serializer-name_converter >`
107
+ * :ref: `circular_reference_handler <reference-serializer-circular_reference_handler >`
107
108
* `php_errors `_
108
109
* `log `_
109
110
* `throw `_
@@ -1481,6 +1482,20 @@ value.
1481
1482
For more information, see
1482
1483
:ref: `component-serializer-converting-property-names-when-serializing-and-deserializing `.
1483
1484
1485
+ .. _reference-serializer-circular_reference_handler :
1486
+
1487
+ circular_reference_handler
1488
+ ..........................
1489
+
1490
+ **type ** ``string ``
1491
+
1492
+ The service id that is used as circular reference handler of the default serializer. The
1493
+ service has to implement the ``__invoke($object) `` method.
1494
+
1495
+ .. seealso ::
1496
+ For more information, see
1497
+ :ref: `component-serializer-handling-circular-references `.
1498
+
1484
1499
php_errors
1485
1500
~~~~~~~~~~
1486
1501
@@ -1610,7 +1625,10 @@ Full Default Configuration
1610
1625
1611
1626
# serializer configuration
1612
1627
serializer :
1613
- enabled : false
1628
+ enabled : false
1629
+ cache : ~
1630
+ name_converter : ~
1631
+ circular_reference_handler : ~
1614
1632
1615
1633
# assets configuration
1616
1634
assets :
You can’t perform that action at this time.
0 commit comments