protected function processResponseType($response = null)
	{
		if ($response instanceof Response) {
			$this->response = $response;
		}
		elseif (is_string($response) || is_numeric($response)) {
			$this->response->setContent($response);
		}
		elseif (is_array($response)) {
			$this->response = new JsonResponse($response);
		}
		else {
			throw new \Exception("App cannot process this response type");
		}
	}
protected function processResponseType($response = null)
	{
		if ($response instanceof Response) {
			$this->response = $response;
		}
		elseif (is_string($response) || is_numeric($response)) {
			$this->response->setContent($response);
		}
		elseif (is_array($response)) {
			$this->response = new JsonResponse($response);
		}
		else {
			throw new \Exception("App cannot process this response type");
		}
	}
protected function processResponseType ( $ response = null ) { if ( $ response instanceof Response ) { $ this -> response = $ response ; } elseif ( is_string ( $ response ) || is_numeric ( $ response ) ) { $ this -> response -> setContent ( $ response ) ; } elseif ( is_array ( $ response ) ) { $ this -> response = new JsonResponse ( $ response ) ; } else { throw new \ Exception ( "App cannot process this response type" ) ; } }
Process the Response Type.

@param mixed $response
@return void
@throws \Exception
Process the Response Type .