Zhamao Framework 3.2.4
A high-performance chatbot + web framework
载入中...
搜索中...
未找到
ZMUtil类 参考

静态 Public 成员函数

static getComposerMetadata (?string $path=null)
 
static putComposerMetadata (?string $path=null, array $content=[])
 
static getComposerExecutable ()
 

成员函数说明

◆ getComposerExecutable()

static getComposerExecutable ( )
static

获取当前 Composer 二进制执行命令的初始位置

◆ getComposerMetadata()

static getComposerMetadata ( ?string  $path = null)
static

获取 composer.json 并转为数组进行读取使用

参数
null | string$path路径
异常

JsonException

◆ putComposerMetadata()

static putComposerMetadata ( ?string  $path = null,
array  $content = [] 
)
static

写入 composer.json

参数
null | string$path路径
array$content内容数组

该类的文档由以下文件生成: