ConfServiceFacade.php 714 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\service;
  3. use think\Facade;
  4. /**
  5. * 系统配置服务门面
  6. * @package app\service
  7. * @method static mixed get($wholeKey, $defaultValue='') 通过完整的key获取配置信息
  8. * @method static mixed set($wholeKey, $value) 通过完整的key设置一个配置信息
  9. * @method static mixed del($group, $key) 删除某个分组下某个key的配置
  10. * @method static mixed groupGet($group, $onlyMysql=false) 通过分组名称,获取整个分组的配置信息
  11. * @method static mixed groupSet($array) 通过hash数组,设置整个分组的配置信息
  12. */
  13. class ConfServiceFacade extends Facade
  14. {
  15. protected static function getFacadeClass()
  16. {
  17. return Conf::class;
  18. }
  19. }