public function RestfulBase::setAccount in RESTful 7
Proxy method to set the account from the authenticationManager.
Parameters
\stdClass $account: The account to set.
File
- plugins/
restful/ RestfulBase.php, line 1190 - Contains RestfulBase.
Class
- RestfulBase
- Class \RestfulBase
Code
public function setAccount(\stdClass $account) {
// If the limit rate is enabled for the current plugin then set the account.
if ($this
->getRateLimitManager()) {
$this
->getRateLimitManager()
->setAccount($account);
}
$this
->getAuthenticationManager()
->setAccount($account);
}