feat: VersionGit hash 추가. dynamic추가. 버전 변수 방식 변경

This commit is contained in:
2021-08-25 02:12:35 +09:00
parent b987fce627
commit fa109c1b0b
4 changed files with 25 additions and 32 deletions
-13
View File
@@ -4,8 +4,6 @@ namespace sammo;
class VersionGitDynamic
{
public static $version = '_tK_verionGit_';
static function getVersion()
{
$command = 'git describe --long --tags';
@@ -26,18 +24,7 @@ class VersionGitDynamic
return trim($output);
}
static function __get($name){
if($name === 'version'){
return static::getVersion();
}
if($name === 'hash'){
return static::getHash();
}
trigger_error("Undefined property $name");
}
private function __construct()
{
}
}
//{"version":"_tK_verionGit_"}