Skip to content

Commit

Permalink
Remove deprecated security token methods on Form
Browse files Browse the repository at this point in the history
Use SecurityToken class directly instead
  • Loading branch information
Sean Harvey committed Nov 15, 2012
1 parent 6382013 commit b43b023
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions forms/Form.php
Expand Up @@ -1295,34 +1295,6 @@ public function enableSecurityToken() {
return $this;
}

/**
* Disable security tokens for every form.
* Note that this doesn't apply to {@link SecurityToken}
* instances outside of the Form class, nor applies
* to existing form instances.
*
* See {@link enable_all_security_tokens()}.
*
* @deprecated 2.5 Use SecurityToken::disable()
*/
public static function disable_all_security_tokens() {
Deprecation::notice('2.5', 'Use SecurityToken::disable() instead.');
SecurityToken::disable();
}

/**
* Returns true if security is enabled - that is if the security token
* should be included and checked on this form.
*
* @deprecated 2.5 Use Form->getSecurityToken()->isEnabled()
*
* @return bool
*/
public function securityTokenEnabled() {
Deprecation::notice('2.5', 'Use Form->getSecurityToken()->isEnabled() instead.');
return $this->securityToken->isEnabled();
}

/**
* Returns the security token for this form (if any exists).
* Doesn't check for {@link securityTokenEnabled()}.
Expand Down

0 comments on commit b43b023

Please sign in to comment.