1
0

main.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. return [
  3. 'aliases' => [
  4. '@bower' => '@vendor/bower-asset',
  5. '@npm' => '@vendor/npm-asset',
  6. ],
  7. 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
  8. 'sourceLanguage' => 'en',
  9. 'language' => 'zh-CN',
  10. 'components' => [
  11. // 新添加的
  12. 'Amqp' => [
  13. 'class' => 'components\service\Amqp',
  14. 'host' => '127.0.0.1',
  15. 'port' => '5672',
  16. 'user' => 'guest',
  17. 'pass' => 'Guest',
  18. ],
  19. 'cUrl' => [
  20. 'class' => '\components\components\CUrl'
  21. ],
  22. //
  23. // //新增加的加密
  24. 'messageQueue' => [
  25. 'class' => '\components\components\messageQueue\MessageInterface',
  26. 'key' => 'QkwzrML50o1KIK5bI-HbkVBcTSA_Ehdh',
  27. 'protocol' => 'http',
  28. // 'host' => '120.78.153.45'
  29. 'host' => 'ki.logsystemadmin.airent.test.com'
  30. ],
  31. 'cache' => [
  32. 'class' => 'yii\caching\FileCache',
  33. ],
  34. 'redis' => [
  35. 'class' => 'yii\redis\Connection',
  36. 'hostname' => '127.0.0.1',
  37. 'port' => 6378,
  38. 'database' => 0,
  39. 'password' => 'redis12078',
  40. ],
  41. 'i18n' => [
  42. 'translations' => [
  43. '*' => [
  44. 'class' => 'yii\i18n\PhpMessageSource',
  45. 'basePath'=>'@common/messages',
  46. 'fileMap' => [
  47. 'common' => 'common.php',
  48. 'error' => 'errorCode.php',
  49. ],
  50. ],
  51. ],
  52. ],
  53. ],
  54. ];