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'],