From 35cbc6226c108bb2ada73e5ef1fb749097a6c5c7 Mon Sep 17 00:00:00 2001 From: Gregwar Date: Wed, 7 May 2014 17:18:57 +0200 Subject: [PATCH] Adding text & background color to persist options (see #18) --- Type/CaptchaType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Type/CaptchaType.php b/Type/CaptchaType.php index 2b10374..3a18eb3 100644 --- a/Type/CaptchaType.php +++ b/Type/CaptchaType.php @@ -122,7 +122,7 @@ class CaptchaType extends AbstractType )); $persistOptions = array(); - foreach (array('phrase', 'width', 'height', 'distortion', 'length', 'quality') as $key) { + foreach (array('phrase', 'width', 'height', 'distortion', 'length', 'quality', 'background_color', 'text_color') as $key) { $persistOptions[$key] = $options[$key]; }