Tdt\Core\ContentNegotiator::createXmlResponse PHP Method

createXmlResponse() private static method

private static createXmlResponse ( $data )
    private static function createXmlResponse($data)
    {
        // Create response
        $response = \Response::make($data, 200);
        // Set headers
        return $response->header('Content-Type', 'text/xml;charset=UTF-8');
    }