ContentDelivery impl

This commit is contained in:
Astrologies 2021-12-31 03:29:16 -05:00
parent db45294a3e
commit 2ab2251045
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?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;
}
}
}