added background_images to configuration
This commit is contained in:
parent
4f46a609ba
commit
a16743a230
|
@ -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()
|
||||
;
|
||||
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue