Skip to content

Commit 730686f

Browse files
committed
feature #6891 [VarDumper] Doc for the Data::seek() method (nicolas-grekas)
This PR was merged into the master branch. Discussion ---------- [VarDumper] Doc for the Data::seek() method Ref. symfony/symfony#19672 Commits ------- cb66d83 [VarDumper] Doc for the Data::seek() method
2 parents 3baba73 + cb66d83 commit 730686f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

components/var_dumper/advanced.rst

+10-3
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,16 @@ Before dumping it, you can further limit the resulting
6666
:class:`Symfony\\Component\\VarDumper\\Cloner\\Data` object using the following methods:
6767

6868
:method:`Symfony\\Component\\VarDumper\\Cloner\\Data::withMaxDepth`
69-
Allows limiting dumps in the depth dimension.
69+
Limits dumps in the depth dimension.
7070

7171
:method:`Symfony\\Component\\VarDumper\\Cloner\\Data::withMaxItemsPerDepth`
7272
Limits the number of items per depth level.
7373

7474
:method:`Symfony\\Component\\VarDumper\\Cloner\\Data::withRefHandles`
75-
Allows removing internal objects' handles for sparser output (useful for tests).
75+
Removes internal objects' handles for sparser output (useful for tests).
76+
77+
:method:`Symfony\\Component\\VarDumper\\Cloner\\Data::seek`
78+
Selects only subparts of already cloned arrays, objects or resources.
7679

7780
Unlike the previous limits on cloners that remove data on purpose, these can
7881
be changed back and forth before dumping since they do not affect the
@@ -82,7 +85,11 @@ intermediate representation internally.
8285

8386
When no limit is applied, a :class:`Symfony\\Component\\VarDumper\\Cloner\\Data`
8487
object is as accurate as the native :phpfunction:`serialize` function,
85-
and thus could be for purposes beyond dumping for debugging.
88+
and thus could be used for purposes beyond debugging.
89+
90+
.. versionadded:: 3.2
91+
The :method:`Symfony\\Component\\VarDumper\\Cloner\\Data::seek` method has been
92+
added in Symfony 3.2
8693

8794
Dumpers
8895
-------

0 commit comments

Comments
 (0)