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; 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