예제 #1
0
 /**
  * Get our Request object, (either IncomingRequest or CLIRequest)
  * and set the server protocol based on the information provided
  * by the server.
  */
 protected function getRequestObject()
 {
     if (is_cli()) {
         $this->request = Services::clirequest($this->config);
     } else {
         $this->request = Services::request($this->config);
         $this->request->setProtocolVersion($_SERVER['SERVER_PROTOCOL']);
     }
 }