/** * Connect to the matrix server via the JS API * * @param $details */ public function connect($details) { $this->restApi->setAuthInfo($details['username'], $details['password']); $this->searchApi->setAuthInfo($details['username'], $details['password']); }
/** * Login to the CMIS repository. This should eventually be standard * for all repositories (ie HTTP Basic or similar). * * @param String $username * @param String $password */ protected function login($username, $password) { $this->api->setAuthInfo($username, $password); }