Skip to content

Commit a07544b

Browse files
committed
Clarify a comment.
The previous comment was lying since collectViewVariables() doesn't really call the buildPreliminaryFormTree() nor the buildFinalFormTree().
1 parent b335b32 commit a07544b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Extension/DataCollector/EventListener/DataCollectorListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ public function postSubmit(FormEvent $event)
7676
$this->dataCollector->collectSubmittedData($event->getForm());
7777

7878
// Assemble a form tree
79-
// This is done again in collectViewVariables(), but that method
80-
// is not guaranteed to be called (i.e. when no view is created)
79+
// This is done again after the view is built, but we need it here as the view is not always created.
8180
$this->dataCollector->buildPreliminaryFormTree($event->getForm());
8281
}
8382
}

0 commit comments

Comments
 (0)