AddonConfig.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. namespace addons\Authority;
  3. use common\components\BaseAddonConfig;
  4. use addons\Authority\services\Application;
  5. use addons\Authority\common\components\Bootstrap;
  6. /**
  7. * Class Addon
  8. * @package addons\Authority
  9. */
  10. class AddonConfig extends BaseAddonConfig
  11. {
  12. /**
  13. * 基础信息
  14. *
  15. * @var array
  16. */
  17. public $info = [
  18. 'name' => 'Authority',
  19. 'title' => '系统更新',
  20. 'brief_introduction' => 'RageFrame 官方在线升级工具',
  21. 'description' => '',
  22. 'author' => '简言',
  23. 'version' => '3.1.49',
  24. ];
  25. /**
  26. * 应用配置
  27. *
  28. * 例如:菜单设置/权限设置/快捷入口
  29. *
  30. * @var array
  31. */
  32. public $appsConfig = [
  33. 'backend' => 'common/config/backend.php',
  34. 'frontend' => 'common/config/frontend.php',
  35. 'merchant' => 'common/config/merchant.php',
  36. 'html5' => 'common/config/html5.php',
  37. 'api' => 'common/config/api.php',
  38. 'oauth2' => 'common/config/oauth2.php',
  39. ];
  40. /**
  41. * 引导文件
  42. *
  43. * 设置后系统会在执行插件控制器前执行
  44. *
  45. * @var Bootstrap
  46. */
  47. public $bootstrap = Bootstrap::class;
  48. /**
  49. * 服务层
  50. *
  51. * 设置后系统会自动注册
  52. *
  53. * 调用方式
  54. *
  55. * Yii::$app->插件名称 + Services
  56. *
  57. * 例如
  58. *
  59. * Yii::$app->tinyShopServices;
  60. *
  61. * @var Application
  62. */
  63. public $service = Application::class;
  64. /**
  65. * 商户路由映射
  66. *
  67. * 开启后无需再去后台应用端去开发程序,直接映射商家应用的控制器方法过去,菜单权限还需要单独配置
  68. *
  69. * @var bool
  70. */
  71. public $isMerchantRouteMap = false;
  72. /**
  73. * 类别
  74. *
  75. * @var string
  76. * [
  77. * 'plug' => "功能插件",
  78. * 'business' => "主要业务",
  79. * 'customer' => "客户关系",
  80. * 'activity' => "营销及活动",
  81. * 'services' => "常用服务及工具",
  82. * 'biz' => "行业解决方案",
  83. * 'h5game' => "小游戏",
  84. * 'other' => "其他",
  85. * ]
  86. */
  87. public $group = 'business';
  88. /**
  89. * 保存在当前模块的根目录下面
  90. *
  91. * 例如 $install = 'Install';
  92. * 安装类
  93. * @var string
  94. */
  95. public $install = 'Install';
  96. /**
  97. * 卸载SQL类
  98. *
  99. * @var string
  100. */
  101. public $uninstall = 'UnInstall';
  102. /**
  103. * 更新SQL类
  104. *
  105. * @var string
  106. */
  107. public $upgrade = 'Upgrade';
  108. }
粤ICP备19079148号