php-platform/mock-config
Composer 安装命令:
composer require php-platform/mock-config
包简介
README 文档
README
This package provides APIs to mock the configuration APIs provided by PHPPlatform/config
IMPORTANT NOTE! This package should be used only for developmental purposes and only as require-dev dependency
Usage
PhpPlatform\Mock\Config\MockSettings::setSettings($package, $settingPath, $settingValue )
where $package is package name , $settingPath is the path of the settings to be updated and $settingValue is the new value of the setting
Example
config.json in package named phpplatform/mypackage
{
"logs":{
"error":"/logs/error.log",
"debug":"/logs/debug.log"
}
}
to set logs.error to new value
PhpPlatform\Mock\Config\MockSettings::setSettings('phpplatform/mypackage','logs.error','/usr/logs/error.log');
统计信息
- 总下载量: 2.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 9
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-12-29