Fixing call to undefined methode

This commit is contained in:
Alexander Pirsig 2012-07-24 16:31:51 +03:00
parent df2f9b3ada
commit c025ea9b0d

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)