You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. return [
  3. 'aliases' => [
  4. '@bower' => '@vendor/bower-asset',
  5. '@npm' => '@vendor/npm-asset',
  6. '@blobt' => '@vendor/blobt',
  7. '@iron' => '@vendor/iron',
  8. '@linyao' => '@vendor/linyao',
  9. ],
  10. 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
  11. 'timeZone' => 'Asia/Shanghai',
  12. 'language' => 'zh-CN',
  13. 'components' => [
  14. 'userLogic' => ['class' => 'iron\logic\UserManager'],
  15. 'cache' => [
  16. 'class' => 'yii\caching\FileCache',
  17. ],
  18. 'mongodb' => [
  19. 'class' => '\yii\mongodb\Connection',
  20. 'dsn' => 'mongodb://127.0.0.1:27017/love',
  21. 'options' => [
  22. // "username" => "",
  23. // "password" => ""
  24. ]
  25. ],
  26. 'authManager' => [
  27. 'class' => 'yii\rbac\DbManager',
  28. ],
  29. 'formatter' => [
  30. 'dateFormat' => 'php:Y-m-d',
  31. 'decimalSeparator' => ',',
  32. 'thousandSeparator' => ' ',
  33. 'currencyCode' => 'RMB',
  34. ],
  35. 'redis' => [
  36. 'class' => 'yii\redis\Connection',
  37. 'hostname' => 'localhost',
  38. 'port' => 6379,
  39. 'database' => 0,
  40. ],
  41. ],
  42. ];