From cac8da3315c878cc2e14d4dcc07619e9880be6f7 Mon Sep 17 00:00:00 2001 From: Joozty Date: Mon, 26 Mar 2018 13:41:01 +0100 Subject: [PATCH 1/2] FIX: Typo fix --- Resources/doc/recaptcha/default.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/recaptcha/default.md b/Resources/doc/recaptcha/default.md index de5098c1..a4e69514 100644 --- a/Resources/doc/recaptcha/default.md +++ b/Resources/doc/recaptcha/default.md @@ -2,7 +2,7 @@ ``` yml # app/config/config.yml -genenu_form: +genemu_form: recaptcha: enabled: true public_key: ~ # Required From 7d2a88233381bd33bbcab5b129dccb6b4baba3c4 Mon Sep 17 00:00:00 2001 From: joozty <32jojo32@gmail.com> Date: Mon, 23 Jul 2018 18:52:14 +0100 Subject: [PATCH 2/2] TYPO fix --- DependencyInjection/Configuration.php | 2 +- Form/Core/Type/ReCaptchaType.php | 2 +- Form/Core/Validator/ReCaptchaValidator.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 75a64065..adae16db 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -31,7 +31,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('genenu_form'); + $rootNode = $treeBuilder->root('genemu_form'); $this->addCaptcha($rootNode); $this->addRecaptcha($rootNode); diff --git a/Form/Core/Type/ReCaptchaType.php b/Form/Core/Type/ReCaptchaType.php index 31592c15..f263661a 100644 --- a/Form/Core/Type/ReCaptchaType.php +++ b/Form/Core/Type/ReCaptchaType.php @@ -43,7 +43,7 @@ class ReCaptchaType extends AbstractType public function __construct(EventSubscriberInterface $validator, $publicKey, $serverUrl, array $options) { if (empty($publicKey)) { - throw new FormException('The child node "public_key" at path "genenu_form.captcha" must be configured.'); + throw new FormException('The child node "public_key" at path "genemu_form.captcha" must be configured.'); } $this->validator = $validator; diff --git a/Form/Core/Validator/ReCaptchaValidator.php b/Form/Core/Validator/ReCaptchaValidator.php index 95b61057..7f890a66 100644 --- a/Form/Core/Validator/ReCaptchaValidator.php +++ b/Form/Core/Validator/ReCaptchaValidator.php @@ -43,7 +43,7 @@ public function __construct(RequestStack $requestStack, $privateKey, array $opti if (empty($options['code'])) { if (empty($privateKey)) { - throw new InvalidConfigurationException('The child node "private_key" at path "genenu_form.recaptcha" must be configured.'); + throw new InvalidConfigurationException('The child node "private_key" at path "genemu_form.recaptcha" must be configured.'); } $this->privateKey = $privateKey;