/** * Sets the CSRF secret used in all new CSRF protected forms * * @param string $secret */ public static function setDefaultCsrfSecret($secret) { self::$defaultCsrfSecret = $secret; }
/** * Clears the default CSRF secrets. */ public static function clearDefaultCsrfSecrets() { self::$defaultCsrfSecrets = array(); }
/** * Sets the default CSRF secrets to be used in all new CSRF protected forms * * @param array $secrets */ public static function setDefaultCsrfSecrets(array $secrets) { self::$defaultCsrfSecrets = $secrets; }