상속: extends HiddenField
예제 #1
0
 /**
  * @return bool
  */
 public static function validateCsrf(CsrfProtection $control)
 {
     return $control->getValue() === $control->getToken();
 }
 /**
  * @return bool
  * @internal
  */
 public static function validateCsrf(CsrfProtection $control)
 {
     $value = $control->getValue();
     return $control->generateToken(substr($value, 0, 10)) === $value;
 }