ContentDelivery impl
This commit is contained in:
parent
db45294a3e
commit
2ab2251045
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue