/**
* Invokes the XML-RPC Client
*
* @param string $method
* @param array $params
*
* @return mixed
*/
protected function call($method, array $params = [])
{
$params['password'] = $this->password;
try {
return $this->xmlrpcClient->call('grav.' . $method, $params);
} catch (ResponseException $e) {
throw Exception\Fault::create($e->getFaultString(), $e->getFaultCode());
}
}