From 107dbe33e4635659d8be96e928493faa4ca1c1c2 Mon Sep 17 00:00:00 2001 From: Gregwar Date: Tue, 19 Nov 2013 10:51:58 +0100 Subject: [PATCH] Adding disabled global option (fixes #72) --- DependencyInjection/Configuration.php | 1 + README.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 9f9fbd5..0ef9877 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -44,6 +44,7 @@ class Configuration implements ConfigurationInterface ->scalarNode('interpolation')->defaultValue(true)->end() ->arrayNode('text_color')->prototype('scalar')->end()->end() ->arrayNode('background_color')->prototype('scalar')->end()->end() + ->scalarNode('disabled')->defaultValue(false)->end() ->end() ; diff --git a/README.md b/README.md index 9a81582..1febba6 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,8 @@ You can define the following configuration options globally or on the CaptchaTyp * **width**: the width of the captcha image (default=120) * **height**: the height of the captcha image (default=40) +* **disabled**: disable globally the CAPTCHAs (can be useful in dev environment), it will + still appear but won't be editable and won't be checked * **length**: the length of the captcha (number of chars, default 5) * **quality**: jpeg quality of captchas (default=15) * **charset**: the charset used for code generation (default=abcdefhjkmnprstuvwxyz23456789)