You are here

public function RestfulAuthenticationManager::setAccount in RESTful 7

Setter method for the account property.

Parameters

\stdClass $account: The account to set.

1 call to RestfulAuthenticationManager::setAccount()
RestfulAuthenticationManager::getAccount in plugins/authentication/RestfulAuthenticationManager.php
Get the user account for the request.

File

plugins/authentication/RestfulAuthenticationManager.php, line 139
Contains RestfulAuthenticationManager.

Class

RestfulAuthenticationManager
@file Contains RestfulAuthenticationManager.

Code

public function setAccount(\stdClass $account) {
  $this->account = $account;
  $this
    ->switchUser();
}