Build.php 1.2 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\Build
  15. * @mixin \think\Build
  16. * @method void run(array $build = [], string $namespace = 'app', bool $suffix = false) static 根据传入的build资料创建目录和文件
  17. * @method void module(string $module = '', array $list = [], string $namespace = 'app', bool $suffix = false) static 创建模块
  18. */
  19. class Build extends Facade
  20. {
  21. /**
  22. * 获取当前Facade对应类名(或者已经绑定的容器对象标识)
  23. * @access protected
  24. * @return string
  25. */
  26. protected static function getFacadeClass()
  27. {
  28. return 'build';
  29. }
  30. }