If the request method is POST, PUT or GET, the data is bound to the form,
transformed and written into the form data (an object or an array).
public bindRequest ( |
||
$request | The request to bind to the form | |
return | This form |
/** * Processes the form with the request * * @param Form $form * @return Message|false the sent message if the form is bound and valid, false otherwise */ public function process(Form $form) { if ('POST' !== $this->request->getMethod()) { return false; } $form->bindRequest($this->request); if ($form->isValid()) { return $this->processValidForm($form); } return false; }