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:
663663
664664 .. code-block :: php-annotations
665665
666- use Symfony\C omponent\S erializer\A nnotation\M axDepth;
666+ use Symfony\Component\Serializer\Annotation\MaxDepth;
667667
668- namespace Acme;
668+ namespace Acme;
669669
670- class MyObj
671- {
672- /**
673- * @MaxDepth(2)
674- */
675- public $foo;
670+ class MyObj
671+ {
672+ /**
673+ * @MaxDepth(2)
674+ */
675+ public $foo;
676676
677- // ...
678- }
677+ // ...
678+ }
679679
680680 .. code-block :: yaml
681681
@@ -703,7 +703,7 @@ It is done automatically when using the Symfony Standard Edition. When using the
703703to :ref: `the groups documentation <component-serializer-attributes-groups >` to learn how to do that.
704704
705705The 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)::
707707
708708 $result = $serializer->normalize($level1, null, array('enable_max_depth' => true));
709709 /*
You can’t perform that action at this time.
0 commit comments