added background_images to configuration

This commit is contained in:
lackovic10 2013-09-26 20:38:39 +02:00
parent 4f46a609ba
commit a16743a230
2 changed files with 4 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()
->arrayNode('background_images')->prototype('scalar')->end()->end()
->end()
;

View File

@ -120,6 +120,9 @@ class CaptchaGenerator
$fingerprint = isset($options['fingerprint']) ? $options['fingerprint'] : null;
// set background images
$this->builder->setBackgroundImages($options['background_images']);
$content = $this->builder->build(
$options['width'],
$options['height'],