/** * @param string $level * @param ResponseInterface $response * @param array $context */ public function logResponse($level, ResponseInterface $response, array $context = array()) { $msg = "[FacebookAPI] [Response] \n"; $msg .= $response->getStatusCode() . ' '; foreach ($response->getHeaders() as $name => $value) { $msg .= "\r\n{$name}: " . $value; } $message = "{$msg}\r\n\r\n" . $response->getBody(); $this->logger->log($level, $message, $context); }
/** * @return int */ public function getHttpStatusCode() { return $this->response->getStatusCode(); }