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()
|
->scalarNode('interpolation')->defaultValue(true)->end()
|
||||||
->arrayNode('text_color')->prototype('scalar')->end()->end()
|
->arrayNode('text_color')->prototype('scalar')->end()->end()
|
||||||
->arrayNode('background_color')->prototype('scalar')->end()->end()
|
->arrayNode('background_color')->prototype('scalar')->end()->end()
|
||||||
|
->arrayNode('background_images')->prototype('scalar')->end()->end()
|
||||||
->end()
|
->end()
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -120,6 +120,9 @@ class CaptchaGenerator
|
||||||
|
|
||||||
$fingerprint = isset($options['fingerprint']) ? $options['fingerprint'] : null;
|
$fingerprint = isset($options['fingerprint']) ? $options['fingerprint'] : null;
|
||||||
|
|
||||||
|
// set background images
|
||||||
|
$this->builder->setBackgroundImages($options['background_images']);
|
||||||
|
|
||||||
$content = $this->builder->build(
|
$content = $this->builder->build(
|
||||||
$options['width'],
|
$options['width'],
|
||||||
$options['height'],
|
$options['height'],
|
||||||
|
|
Loading…
Reference in New Issue