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.

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