Adding disabled global option (fixes #72)

This commit is contained in:
Gregwar 2013-11-19 10:51:58 +01:00
parent 6b4e7db721
commit 107dbe33e4
2 changed files with 3 additions and 0 deletions

View File

@ -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()
;

View File

@ -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)