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.

42 lines
1.1 KiB

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. 'cache' => [
  15. 'class' => 'yii\caching\FileCache',
  16. ],
  17. 'mongodb' => [
  18. 'class' => '\yii\mongodb\Connection',
  19. 'dsn' => 'mongodb://127.0.0.1:27017/love',
  20. 'options' => [
  21. // "username" => "",
  22. // "password" => ""
  23. ]
  24. ],
  25. 'authManager' => [
  26. 'class' => 'yii\rbac\DbManager',
  27. ],
  28. 'formatter' => [
  29. 'dateFormat' => 'php:Y-m-d',
  30. 'decimalSeparator' => ',',
  31. 'thousandSeparator' => ' ',
  32. 'currencyCode' => 'RMB',
  33. ],
  34. 'redis' => [
  35. 'class' => 'yii\redis\Connection',
  36. 'hostname' => 'localhost',
  37. 'port' => 6379,
  38. 'database' => 0,
  39. ],
  40. ],
  41. ];