Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2fc3811

Browse filesBrowse files
use VarCloner instead of Php/ExtCloner
1 parent 350e0c7 commit 2fc3811
Copy full SHA for 2fc3811

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎components/var_dumper/advanced.rst

Copy file name to clipboardExpand all lines: components/var_dumper/advanced.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ represent only a subset of the cloned variable.
1717
You can create a :class:`Symfony\\Component\\VarDumper\\Cloner\\Data`
1818
object this way::
1919

20-
$cloner = new PhpCloner();
20+
$cloner = new VarCloner();
2121
$data = $cloner->cloneVar($myVar);
2222

2323
Before cloning, you can configure the limits with::
@@ -41,7 +41,7 @@ a PHP variable. Casters are registered using either a Cloner's constructor
4141
or its ``addCasters()`` method::
4242

4343
$myCasters = array(...);
44-
$cloner = new PhpCloner($myCasters);
44+
$cloner = new VarCloner($myCasters);
4545

4646
// or
4747

@@ -112,7 +112,7 @@ for optionally colored command line output.
112112

113113
For example, if you want to dump some ``$variable``, just do::
114114

115-
$cloner = new PhpCloner();
115+
$cloner = new VarCloner();
116116
$dumper = new CliDumper();
117117

118118
$dumper->dump($cloner->cloneVar($variable));
@@ -132,7 +132,7 @@ method or using the second argument of the
132132

133133
For example, to get a dump in a variable, you can do::
134134

135-
$cloner = new PhpCloner();
135+
$cloner = new VarCloner();
136136
$dumper = new CliDumper();
137137
$output = '';
138138

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.