예제 #1
0
 /**
  * @param \LinguaLeo\ExpertSender\ExpertSenderResponse $response
  */
 public function __construct($response)
 {
     parent::__construct($response);
     $this->parse();
 }
예제 #2
0
 /**
  * @param string $method
  * @param ApiResult $result
  */
 protected function logApiResult($method, ApiResult $result)
 {
     if ($result->isOk()) {
         return;
     }
     $this->logger->error(sprintf('ES method "%s" error response: %s.', $method, json_encode((array) $result, JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT)));
 }