Update CaptchaType.php
add getBlockPrefix for Symfony3 compatibility.
This commit is contained in:
parent
e91cb1a3b7
commit
fcf8c4fd01
|
@ -151,6 +151,14 @@ class CaptchaType extends AbstractType
|
|||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->getBlockPrefix();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'captcha';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue