TemplateLoader.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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\template;
  12. use core\loader\Loader;
  13. /**
  14. * @see TemplateLoader
  15. * @package think\facade
  16. * @mixin Wechat
  17. * @method string|null send(array $data) 发送
  18. * @method mixed addTemplate(array $data) 增加
  19. * @method mixed delete(array $data) 删除
  20. * @method mixed get() 模板记录
  21. */
  22. class TemplateLoader extends Loader
  23. {
  24. /**
  25. * 空间名
  26. * @var string
  27. */
  28. protected $namespace = '\\core\\template\\';
  29. protected $config_name = 'template';
  30. /**
  31. * 默认驱动
  32. * @return mixed
  33. */
  34. protected function getDefault()
  35. {
  36. return config('template.default');
  37. }
  38. }