|
@@ -218,18 +218,10 @@ class Client implements ClientInterface
|
|
*/
|
|
*/
|
|
public function __call($method, $arguments)
|
|
public function __call($method, $arguments)
|
|
{
|
|
{
|
|
- $command = $this->profile->createCommand($method, $arguments);
|
|
|
|
- $response = $this->connection->executeCommand($command);
|
|
|
|
-
|
|
|
|
- if ($response instanceof ResponseObjectInterface) {
|
|
|
|
- if ($response instanceof ResponseErrorInterface) {
|
|
|
|
- $response = $this->onResponseError($command, $response);
|
|
|
|
- }
|
|
|
|
|
|
+ $command = $this->createCommand($method, $arguments);
|
|
|
|
+ $response = $this->executeCommand($command);
|
|
|
|
|
|
- return $response;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return $command->parseResponse($response);
|
|
|
|
|
|
+ return $response;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|