Merge pull request #30 from piscis/patch-2
Fixing call to undefined methode
This commit is contained in:
commit
22f494e27a
|
@ -81,12 +81,16 @@ class CaptchaType extends AbstractType
|
||||||
$this->session->set($this->key.'_fingerprint', $generator->getFingerprint());
|
$this->session->set($this->key.'_fingerprint', $generator->getFingerprint());
|
||||||
}
|
}
|
||||||
|
|
||||||
$view->addVars(array(
|
$fieldVars = array(
|
||||||
'captcha_width' => $options['width'],
|
'captcha_width' => $options['width'],
|
||||||
'captcha_height' => $options['height'],
|
'captcha_height' => $options['height'],
|
||||||
'captcha_code' => $captchaCode,
|
'captcha_code' => $captchaCode,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
));
|
);
|
||||||
|
|
||||||
|
foreach($fieldVars as $name => $value){
|
||||||
|
$view->set($name,$value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
||||||
|
|
Loading…
Reference in New Issue