Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function finalize()
 {
     list($status, $headers, $body) = parent::finalize();
     $this->stringRepresentation = $this->convertToStringRepresentation($body);
     $this->length = strlen($this->stringRepresentation);
     $this->headers->set('Content-Type', $this->getContentType());
     $this->headers->set('Content-Length', $this->length);
     return array($status, $headers, $body);
 }