8000 [Form/Profiler] Massively reducing memory footprint of form profiling pages... by VincentChalnot · Pull Request #27923 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form/Profiler] Massively reducing memory footprint of form profiling pages... #27923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Symfony\Component\Form\FormView;
use Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter;
use Symfony\Component\Validator\ConstraintViolationInterface;
use Symfony\Component\VarDumper\Caster\CutStub;

/**
* Default implementation of {@link FormDataExtractorInterface}.
Expand Down Expand Up @@ -155,6 +156,10 @@ public function extractViewVariables(FormView $view)
);

foreach ($view->vars as $varName => $value) {
// Removing redundant variable from view variables
if ('form' === $varName) {
$value = new CutStub($value);
}
$data['view_vars'][$varName] = $value;
}

Expand Down
0