From cb66d83236a9b33f806e22d7ec0ae5621f6642d5 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 19 Aug 2016 14:34:09 +0200 Subject: [PATCH] [VarDumper] Doc for the Data::seek() method --- components/var_dumper/advanced.rst | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/components/var_dumper/advanced.rst b/components/var_dumper/advanced.rst index ccc0308cad7..8f4f05f6019 100644 --- a/components/var_dumper/advanced.rst +++ b/components/var_dumper/advanced.rst @@ -66,13 +66,16 @@ Before dumping it, you can further limit the resulting :class:`Symfony\\Component\\VarDumper\\Cloner\\Data` object using the following methods: :method:`Symfony\\Component\\VarDumper\\Cloner\\Data::withMaxDepth` - Allows limiting dumps in the depth dimension. + Limits dumps in the depth dimension. :method:`Symfony\\Component\\VarDumper\\Cloner\\Data::withMaxItemsPerDepth` Limits the number of items per depth level. :method:`Symfony\\Component\\VarDumper\\Cloner\\Data::withRefHandles` - Allows removing internal objects' handles for sparser output (useful for tests). + Removes internal objects' handles for sparser output (useful for tests). + +:method:`Symfony\\Component\\VarDumper\\Cloner\\Data::seek` + Selects only subparts of already cloned arrays, objects or resources. Unlike the previous limits on cloners that remove data on purpose, these can be changed back and forth before dumping since they do not affect the @@ -82,7 +85,11 @@ intermediate representation internally. When no limit is applied, a :class:`Symfony\\Component\\VarDumper\\Cloner\\Data` object is as accurate as the native :phpfunction:`serialize` function, - and thus could be for purposes beyond dumping for debugging. + and thus could be used for purposes beyond debugging. + +.. versionadded:: 3.2 + The :method:`Symfony\\Component\\VarDumper\\Cloner\\Data::seek` method has been + added in Symfony 3.2 Dumpers -------