File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
src/Symfony/Component/Form/Extension/DataCollector Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 19
19
use Symfony \Component \Validator \ConstraintViolationInterface ;
20
20
use Symfony \Component \VarDumper \Caster \Caster ;
21
21
use Symfony \Component \VarDumper \Caster \ClassStub ;
22
+ use Symfony \Component \VarDumper \Caster \StubCaster ;
22
23
use Symfony \Component \VarDumper \Cloner \Stub ;
23
24
24
25
/**
@@ -262,6 +263,7 @@ protected function getCasters()
262
263
Caster::PREFIX_VIRTUAL .'type_class ' => new ClassStub (get_class ($ f ->getConfig ()->getType ()->getInnerType ())),
263
264
);
264
265
},
266
+ FormView::class => array (StubCaster::class, 'cutInternals ' ),
265
267
ConstraintViolationInterface::class => function (ConstraintViolationInterface $ v , array $ a ) {
266
268
return array (
267
269
Caster::PREFIX_VIRTUAL .'root ' => $ v ->getRoot (),
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \FormView ;
16
16
use Symfony \Component \HttpKernel \DataCollector \Util \ValueExporter ;
17
17
use Symfony \Component \Validator \ConstraintViolationInterface ;
18
- use Symfony \Component \VarDumper \Caster \CutStub ;
19
18
20
19
/**
21
20
* Default implementation of {@link FormDataExtractorInterface}.
@@ -156,10 +155,6 @@ public function extractViewVariables(FormView $view)
156
155
);
157
156
158
157
foreach ($ view ->vars as $ varName => $ value ) {
159
- // Removing redundant variable from view variables
160
- if ('form ' === $ varName ) {
161
- $ value = new CutStub ($ value );
162
- }
163
158
$ data ['view_vars ' ][$ varName ] = $ value ;
164
159
}
165
160
You can’t perform that action at this time.
0 commit comments