src/Form/Validators/SimpleCaptchaValidator.php
public function isValid($value)
  {
    $securimage = new \Securimage(array('session_name' => null));

    if (empty($value)) {
      parent::addError(Translation::get('validatorerror_simplecaptcha_required'));
      return false;
    }

    if ($securimage->check($value) == false) {
      parent::addError(Translation::get('validatorerror_simplecaptcha_check'));
      return false;
    }

    return true;
  }
public function isValid($value)
  {
    $securimage = new \Securimage(array('session_name' => null));

    if (empty($value)) {
      parent::addError(Translation::get('validatorerror_simplecaptcha_required'));
      return false;
    }

    if ($securimage->check($value) == false) {
      parent::addError(Translation::get('validatorerror_simplecaptcha_check'));
      return false;
    }

    return true;
  }
Teste la validité

@param  mixed $value Valeur à tester
@return boolean