| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- return [
- 'language' => 'zh-CN',
- 'aliases' => [
- '@bower' => '@vendor/bower-asset',
- '@npm' => '@vendor/npm-asset',
- ],
- 'bootstrap' => [
- 'common\components\Init', // 加载默认的配置
- ],
- 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
- 'components' => [
- 'cache' => [
- 'class' => 'yii\caching\FileCache',
- ],
- 'services' => [
- 'class' => 'services\Application',
- ],
- 'uploadDrive' => [
- 'class' => 'common\components\UploadDrive',
- ],
- /** ------ 公用支付 ------ **/
- 'payment' => [
- 'class' => 'common\components\Payment',
- ],
- /** ------ 微信SDK ------ **/
- 'wechat' => [
- 'class' => 'common\components\Wechat',
- 'userOptions' => [], // 用户身份类参数
- 'sessionParam' => 'wechatUser', // 微信用户信息将存储在会话在这个密钥
- 'returnUrlParam' => '_wechatReturnUrl', // returnUrl 存储在会话中
- 'rebinds' => [
- 'cache' => 'common\components\WechatCache',
- ]
- ],
- /** ------ 自定义功能 ------ **/
- 'custom' => [
- 'class' => 'common\components\Custom',
- ],
- ],
- ];
|