PosterLoader.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace core\poster;
  12. use core\loader\Loader;
  13. /**
  14. * @see PosterLoader
  15. * @package think\facade
  16. * @mixin BasePoster
  17. * @method string|null createPoster( array $poster, string $dir, string $file_path ) 创建海报
  18. */
  19. class PosterLoader extends Loader
  20. {
  21. /**
  22. * 空间名
  23. * @var string
  24. */
  25. protected $namespace = '\\core\\poster\\';
  26. protected $config_name = 'poster';
  27. /**
  28. * 默认驱动
  29. * @return mixed
  30. */
  31. protected function getDefault()
  32. {
  33. return config('poster.default');
  34. }
  35. }