mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 08:05:34 +08:00
refactor all base things
This commit is contained in:
@@ -6,4 +6,11 @@ namespace ZM\Utils;
|
||||
|
||||
class ZMUtil
|
||||
{
|
||||
/**
|
||||
* 获取 composer.json 并转为数组进行读取使用
|
||||
*/
|
||||
public static function getComposerMetadata(): ?array
|
||||
{
|
||||
return json_decode(file_get_contents(SOURCE_ROOT_DIR . '/composer.json'), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user