File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 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::
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+
864869Handling Arrays
865870---------------
866871
You can’t perform that action at this time.
0 commit comments