Clarify a comment.

The previous comment was lying since collectViewVariables() doesn't really call
the buildPreliminaryFormTree() nor the buildFinalFormTree().
This commit is contained in:
Jakub Zalas 2014-12-30 15:05:42 +00:00
parent 5b16d8eab5
commit 00b429769b

View File

@ -76,8 +76,7 @@ class DataCollectorListener implements EventSubscriberInterface
$this->dataCollector->collectSubmittedData($event->getForm());
// Assemble a form tree
// This is done again in collectViewVariables(), but that method
// is not guaranteed to be called (i.e. when no view is created)
// This is done again after the view is built, but we need it here as the view is not always created.
$this->dataCollector->buildPreliminaryFormTree($event->getForm());
}
}