From 3ad62e4d0d685f00cd4afcbe93ee051775376e0c Mon Sep 17 00:00:00 2001 From: lackovic10 Date: Thu, 26 Sep 2013 21:10:02 +0200 Subject: [PATCH] added ignore_all_effects to configuration --- DependencyInjection/Configuration.php | 1 + Generator/CaptchaGenerator.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 1ffc7e2..0fd6466 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -45,6 +45,7 @@ class Configuration implements ConfigurationInterface ->arrayNode('text_color')->prototype('scalar')->end()->end() ->arrayNode('background_color')->prototype('scalar')->end()->end() ->arrayNode('background_images')->prototype('scalar')->end()->end() + ->scalarNode('ignore_all_effects')->defaultValue(false)->end() ->end() ; diff --git a/Generator/CaptchaGenerator.php b/Generator/CaptchaGenerator.php index e997c67..9e9e302 100644 --- a/Generator/CaptchaGenerator.php +++ b/Generator/CaptchaGenerator.php @@ -123,6 +123,9 @@ class CaptchaGenerator // set background images $this->builder->setBackgroundImages($options['background_images']); + // set ignore all effects + $this->builder->setIgnoreAllEffects($options['ignore_all_effects']); + $content = $this->builder->build( $options['width'], $options['height'],