fobe-web/globals/Dependencies/Common/ContentDelivery.php

25 lines
527 B
PHP

<?php
/*
Alphaland 2021
*/
namespace Alphaland\Common {
class ContentDelivery
{
public static function ConstructRenderHashUrl(string $hash)
{
return $GLOBALS['renderCDN']."/".$hash;
}
public static function ConstructThumbnailHashUrl(string $hash)
{
return $GLOBALS['thumbnailCDN']."/".$hash;
}
public static function ConstructAssetHashUrl(string $hash)
{
return $GLOBALS['assetCDN']."/".$hash;
}
}
}