diff --git a/src/Skobkin/Bundle/CopyPasteBundle/Form/FakeCaptchaType.php b/src/Skobkin/Bundle/CopyPasteBundle/Form/FakeCaptchaType.php index 5ec60cb..58a4c4b 100644 --- a/src/Skobkin/Bundle/CopyPasteBundle/Form/FakeCaptchaType.php +++ b/src/Skobkin/Bundle/CopyPasteBundle/Form/FakeCaptchaType.php @@ -3,6 +3,7 @@ namespace Skobkin\Bundle\CopyPasteBundle\Form; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -22,6 +23,16 @@ class FakeCaptchaType extends AbstractType public function getParent() { - return 'hidden'; + return HiddenType::class; } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'copypaste_fake_captcha'; + } + + } diff --git a/src/Skobkin/Bundle/CopyPasteBundle/Resources/views/Form/fields.html.twig b/src/Skobkin/Bundle/CopyPasteBundle/Resources/views/Form/fields.html.twig index 18311b4..dec8ba7 100644 --- a/src/Skobkin/Bundle/CopyPasteBundle/Resources/views/Form/fields.html.twig +++ b/src/Skobkin/Bundle/CopyPasteBundle/Resources/views/Form/fields.html.twig @@ -1,4 +1,4 @@ -{% block skobkin_fake_captcha_widget %} +{% block copypaste_fake_captcha_widget %} {% spaceless %}