Skip to content

Commit befb90e

Browse files
committed
Minor tweaks and added the versionadded directive
1 parent 4bb4abf commit befb90e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

components/serializer.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,9 @@ because it is deeper than the configured maximum depth of 2::
813813
);
814814
*/
815815

816-
Instead of throwing an exception, a custom callable can be executed when the maximum depth is reached. This is especially
817-
useful when serializing entities having unique identifiers::
816+
Instead of throwing an exception, a custom callable can be executed when the
817+
maximum depth is reached. This is especially useful when serializing entities
818+
having unique identifiers::
818819

819820
use Doctrine\Common\Annotations\AnnotationReader;
820821
use Symfony\Component\Serializer\Serializer;
@@ -826,6 +827,7 @@ useful when serializing entities having unique identifiers::
826827
class Foo
827828
{
828829
public $id;
830+
829831
/**
830832
* @MaxDepth(1)
831833
*/
@@ -861,6 +863,9 @@ useful when serializing entities having unique identifiers::
861863
);
862864
*/
863865

866+
.. versionadded:: 4.1
867+
The ``setMaxDepthHandler()`` method was introduced in Symfony 4.1.
868+
864869
Handling Arrays
865870
---------------
866871

0 commit comments

Comments
 (0)