Tdt\Core\Formatters\KMLFormatter::createResponse PHP Méthode

createResponse() public static méthode

public static createResponse ( $dataObj )
    public static function createResponse($dataObj)
    {
        // Create response
        $response = \Response::make(self::getBody($dataObj), 200);
        // Set headers
        $response->header('Content-Type', 'application/vnd.google-earth.kml+xml;charset=UTF-8');
        return $response;
    }