File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -813,8 +813,9 @@ because it is deeper than the configured maximum depth of 2::
813
813
);
814
814
*/
815
815
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::
818
819
819
820
use Doctrine\Common\Annotations\AnnotationReader;
820
821
use Symfony\Component\Serializer\Serializer;
@@ -826,6 +827,7 @@ useful when serializing entities having unique identifiers::
826
827
class Foo
827
828
{
828
829
public $id;
830
+
829
831
/**
830
832
* @MaxDepth(1)
831
833
*/
@@ -861,6 +863,9 @@ useful when serializing entities having unique identifiers::
861
863
);
862
864
*/
863
865
866
+ .. versionadded :: 4.1
867
+ The ``setMaxDepthHandler() `` method was introduced in Symfony 4.1.
868
+
864
869
Handling Arrays
865
870
---------------
866
871
You can’t perform that action at this time.
0 commit comments