src/Library/HttpFundamental/ContentType.php
public function prepareResponse(Response $response)
    {
        $cto = $this->getContentTypeObject();
        if (!empty($cto)) {
            $ctt_type = $cto->getContentType();
        } else {
            $ctt_type = $this->getContentType();
        }
        $response->setContentType($ctt_type);
    }
public function prepareResponse(Response $response)
    {
        $cto = $this->getContentTypeObject();
        if (!empty($cto)) {
            $ctt_type = $cto->getContentType();
        } else {
            $ctt_type = $this->getContentType();
        }
        $response->setContentType($ctt_type);
    }
public function prepareResponse ( Response $ response ) { $ cto = $ this -> getContentTypeObject ( ) ; if ( ! empty ( $ cto ) ) { $ ctt_type = $ cto -> getContentType ( ) ; } else { $ ctt_type = $ this -> getContentType ( ) ; } $ response -> setContentType ( $ ctt_type ) ; }
Prepare the content of the response before to send it to client

@param \Library\HttpFundamental\Response $response
@return void
Prepare the content of the response before to send it to client