Example #1
0
 /**
  * Get our Response object, and set some default values, including
  * the HTTP protocol version and a default successful response.
  */
 protected function getResponseObject()
 {
     $this->response = Services::response($this->config);
     if (!is_cli()) {
         $this->response->setProtocolVersion($this->request->getProtocolVersion());
     }
     // Assume success until proven otherwise.
     $this->response->setStatusCode(200);
 }