protected function getResponseObject()
	{
		$this->response = Services::response($this->config);

		if (! is_cli() || ENVIRONMENT === 'testing')
		{
			$this->response->setProtocolVersion($this->request->getProtocolVersion());
		}

		// Assume success until proven otherwise.
		$this->response->setStatusCode(200);
	}
protected function getResponseObject()
	{
		$this->response = Services::response($this->config);

		if (! is_cli() || ENVIRONMENT === 'testing')
		{
			$this->response->setProtocolVersion($this->request->getProtocolVersion());
		}

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