Merge pull request #30 from piscis/patch-2

Fixing call to undefined methode
This commit is contained in:
Grégoire Passault 2012-07-24 14:14:43 -07:00
commit 22f494e27a

View File

@ -81,12 +81,16 @@ class CaptchaType extends AbstractType
$this->session->set($this->key.'_fingerprint', $generator->getFingerprint());
}
$view->addVars(array(
$fieldVars = array(
'captcha_width' => $options['width'],
'captcha_height' => $options['height'],
'captcha_code' => $captchaCode,
'value' => '',
));
);
foreach($fieldVars as $name => $value){
$view->set($name,$value);
}
}
public function setDefaultOptions(OptionsResolverInterface $resolver)