private function responseFrom(ControllerContextInterface $context)
    {
        $response = $context->response();
        if (! $response instanceof ResponseInterface) {
            throw new MissingResponseException(
                "Missing response object after handle the request. If you disabled rendering you need to ".
                "provide an HTTP response object to be returned to the client. Use Context::setResponse() ".
                "to provide a response to be returned."
            );
        }

        return $response;
    }
private function responseFrom(ControllerContextInterface $context)
    {
        $response = $context->response();
        if (! $response instanceof ResponseInterface) {
            throw new MissingResponseException(
                "Missing response object after handle the request. If you disabled rendering you need to ".
                "provide an HTTP response object to be returned to the client. Use Context::setResponse() ".
                "to provide a response to be returned."
            );
        }

        return $response;
    }
private function responseFrom ( ControllerContextInterface $ context ) { $ response = $ context -> response ( ) ; if ( ! $ response instanceof ResponseInterface ) { throw new MissingResponseException ( "Missing response object after handle the request. If you disabled rendering you need to " . "provide an HTTP response object to be returned to the client. Use Context::setResponse() " . "to provide a response to be returned." ) ; } return $ response ; }
Verify and return the response from the context

@param ControllerContextInterface $context

@return ResponseInterface

@throws MissingResponseException When context has no response object to return
Verify and return the response from the context