From 3cc4b072c310741647b9efd7f959ffed0a593d6c Mon Sep 17 00:00:00 2001 From: Max Kovpak Date: Tue, 25 Aug 2015 17:15:15 +0300 Subject: [PATCH] POST_BIND deprecated POST_BIND deprecated since version 2.3, to be removed in 3.0. Use POST_SUBMIT instead. --- Type/CaptchaType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Type/CaptchaType.php b/Type/CaptchaType.php index 86d5ddb..bf629a3 100644 --- a/Type/CaptchaType.php +++ b/Type/CaptchaType.php @@ -71,7 +71,7 @@ class CaptchaType extends AbstractType $options['humanity'] ); - $builder->addEventListener(FormEvents::POST_BIND, array($validator, 'validate')); + $builder->addEventListener(FormEvents::POST_SUBMIT, array($validator, 'validate')); } /**