Skip to content

Commit b5fd7d6

Browse files
[VarDumper] Doc for the Data::seek() method
1 parent a7f704c commit b5fd7d6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

components/var_dumper/advanced.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ Before dumping it, you can further limit the resulting
7474
:method:`Symfony\\Component\\VarDumper\\Cloner\\Data::withRefHandles`
7575
Allows removing internal objects' handles for sparser output (useful for tests).
7676

77+
:method:`Symfony\\Component\\VarDumper\\Cloner\\Data::seek`
78+
Allows dumping only subparts of already cloned arrays, objects or resources.
79+
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
7982
intermediate representation internally.
@@ -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)