File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -663,19 +663,19 @@ property:
663
663
664
664
.. code-block :: php-annotations
665
665
666
- use Symfony\C omponent\S erializer\A nnotation\M axDepth;
666
+ use Symfony\Component\Serializer\Annotation\MaxDepth;
667
667
668
- namespace Acme;
668
+ namespace Acme;
669
669
670
- class MyObj
671
- {
672
- /**
673
- * @MaxDepth(2)
674
- */
675
- public $foo;
670
+ class MyObj
671
+ {
672
+ /**
673
+ * @MaxDepth(2)
674
+ */
675
+ public $foo;
676
676
677
- // ...
678
- }
677
+ // ...
678
+ }
679
679
680
680
.. code-block :: yaml
681
681
@@ -703,7 +703,7 @@ It is done automatically when using the Symfony Standard Edition. When using the
703
703
to :ref: `the groups documentation <component-serializer-attributes-groups >` to learn how to do that.
704
704
705
705
The check is only done if the `enable_max_depth ` key of the serializer context is set to ``true ``. In the following
706
- example, the third level is not serialized because it is deeper than the configured maximum depth (2).
706
+ example, the third level is not serialized because it is deeper than the configured maximum depth (2)::
707
707
708
708
$result = $serializer->normalize($level1, null, array('enable_max_depth' => true));
709
709
/*
You can’t perform that action at this time.
0 commit comments