parent
3cc4b072c3
commit
87d38d98a4
|
@ -70,8 +70,8 @@ class CaptchaType extends AbstractType
|
||||||
$options['bypass_code'],
|
$options['bypass_code'],
|
||||||
$options['humanity']
|
$options['humanity']
|
||||||
);
|
);
|
||||||
|
$event = \Symfony\Component\HttpKernel\Kernel::VERSION >= 2.3 ? FormEvents::POST_SUBMIT : FormEvents::POST_BIND;
|
||||||
$builder->addEventListener(FormEvents::POST_SUBMIT, array($validator, 'validate'));
|
$builder->addEventListener($event, array($validator, 'validate'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue