@@ -17,7 +17,7 @@ represent only a subset of the cloned variable.
17
17
You can create a :class: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data `
18
18
object this way::
19
19
20
- $cloner = new PhpCloner ();
20
+ $cloner = new VarCloner ();
21
21
$data = $cloner->cloneVar($myVar);
22
22
23
23
Before cloning, you can configure the limits with::
@@ -41,7 +41,7 @@ a PHP variable. Casters are registered using either a Cloner's constructor
41
41
or its ``addCasters() `` method::
42
42
43
43
$myCasters = array(...);
44
- $cloner = new PhpCloner ($myCasters);
44
+ $cloner = new VarCloner ($myCasters);
45
45
46
46
// or
47
47
@@ -112,7 +112,7 @@ for optionally colored command line output.
112
112
113
113
For example, if you want to dump some ``$variable ``, just do::
114
114
115
- $cloner = new PhpCloner ();
115
+ $cloner = new VarCloner ();
116
116
$dumper = new CliDumper();
117
117
118
118
$dumper->dump($cloner->cloneVar($variable));
@@ -132,7 +132,7 @@ method or using the second argument of the
132
132
133
133
For example, to get a dump in a variable, you can do::
134
134
135
- $cloner = new PhpCloner ();
135
+ $cloner = new VarCloner ();
136
136
$dumper = new CliDumper();
137
137
$output = '';
138
138
0 commit comments