Update CaptchaType.php

add getBlockPrefix for Symfony3 compatibility.
This commit is contained in:
Daniel Platt 2016-02-02 22:15:18 +00:00
parent e91cb1a3b7
commit fcf8c4fd01

View File

@ -151,6 +151,14 @@ class CaptchaType extends AbstractType
* @return string
*/
public function getName()
{
return $this->getBlockPrefix();
}
/**
* @return string
*/
public function getBlockPrefix()
{
return 'captcha';
}