@@ -50,28 +50,33 @@ corresponding Data object could represent only a subset of the cloned variable.
50
50
Before calling :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::cloneVar `,
51
51
you can configure these limits:
52
52
53
- * :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMaxItems `
54
- configures the maximum number of items that will be cloned
55
- *past the first nesting level *. Items are counted using a breadth-first
56
- algorithm so that lower level items have higher priority than deeply nested
57
- items;
58
- * :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMaxString `
59
- configures the maximum number of characters that will be cloned before
60
- cutting overlong strings;
61
- * in both cases, specifying `-1 ` removes any limit.
53
+ :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMaxItems `
54
+ configures the maximum number of items that will be cloned
55
+ *past the first nesting level *. Items are counted using a breadth-first
56
+ algorithm so that lower level items have higher priority than deeply nested
57
+ items;
58
+
59
+ :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMaxString `
60
+ configures the maximum number of characters that will be cloned before
61
+ cutting overlong strings;
62
+
63
+ In both cases, specifying `-1 ` removes any limit.
62
64
63
65
Before dumping it, you can further limit the resulting
64
- :class: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data ` object by calling its
65
- :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data::getLimitedClone `
66
- method:
67
-
68
- * the first ``$maxDepth `` argument allows limiting dumps in the depth dimension,
69
- * the second ``$maxItemsPerDepth `` limits the number of items per depth level,
70
- * and the last ``$useRefHandles `` defaults to ``true ``, but allows removing
71
- internal objects' handles for sparser output,
72
- * but unlike the previous limits on cloners that remove data on purpose,
73
- these can be changed back and forth before dumping since they do not affect
74
- the intermediate representation internally.
66
+ :class: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data ` object:
67
+
68
+ :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data::withMaxDepth `
69
+ Allows limiting dumps in the depth dimension.
70
+
71
+ :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data::withMaxItemsPerDepth `
72
+ Limits the number of items per depth level.
73
+
74
+ :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data::withRefHandles `
75
+ Allows removing internal objects' handles for sparser output (useful for tests).
76
+
77
+ Unlike the previous limits on cloners that remove data on purpose, these can
78
+ be changed back and forth before dumping since they do not affect the
79
+ intermediate representation internally.
75
80
76
81
.. note ::
77
82
0 commit comments