Env.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. namespace think\facade;
  12. use think\Facade;
  13. /**
  14. * @see \think\Env
  15. * @mixin \think\Env
  16. * @method void load(string $file) static 读取环境变量定义文件
  17. * @method mixed get(string $name = null, mixed $default = null) static 获取环境变量值
  18. * @method void set(mixed $env, string $value = null) static 设置环境变量值
  19. */
  20. class Env extends Facade
  21. {
  22. /**
  23. * 获取当前Facade对应类名(或者已经绑定的容器对象标识)
  24. * @access protected
  25. * @return string
  26. */
  27. protected static function getFacadeClass()
  28. {
  29. return 'env';
  30. }
  31. }