added ignore_all_effects to configuration

This commit is contained in:
lackovic10 2013-09-26 21:10:02 +02:00
parent a16743a230
commit 3ad62e4d0d
2 changed files with 4 additions and 0 deletions

View File

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

View File

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