2.1.0
This adds some form shorthand methods.
$form
->addText('email')
->setAttributes(array(
'required' => 'required',
'type' => 'email',
))
;
to
$form
->addText('email')
->setType('email')
->makeRequired()
;