Url.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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\Url
  15. * @mixin \think\Url
  16. * @method string build(string $url = '', mixed $vars = '', mixed $suffix = true, mixed $domain = false) static URL生成 支持路由反射
  17. * @method void root(string $root) static 指定当前生成URL地址的root
  18. */
  19. class Url extends Facade
  20. {
  21. /**
  22. * 获取当前Facade对应类名(或者已经绑定的容器对象标识)
  23. * @access protected
  24. * @return string
  25. */
  26. protected static function getFacadeClass()
  27. {
  28. return 'url';
  29. }
  30. }