Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 323 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 323 Bytes

Yaconf support for ThinkPHP 6.0

安装

composer require topthink/think-yaconf

然后在app目录下面的provider.php中配置

'think\Config'	=>	'think\Yaconf',

你可以指定Yaconf的某个文件作为项目的统一配置文件

think\facade\Config::setYaconf('file_name');