123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- return [
- 'aliases' => [
- '@bower' => '@vendor/bower-asset',
- '@npm' => '@vendor/npm-asset',
- ],
- 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
- 'sourceLanguage' => 'en',
- 'language' => 'zh-CN',
- 'components' => [
- // 新添加的
- 'Amqp' => [
- 'class' => 'components\service\Amqp',
- 'host' => '127.0.0.1',
- 'port' => '5672',
- 'user' => 'guest',
- 'pass' => 'Guest',
- ],
- 'cache' => [
- 'class' => 'yii\caching\FileCache',
- ],
- 'redis' => [
- 'class' => 'yii\redis\Connection',
- 'hostname' => '127.0.0.1',
- 'port' => 6378,
- 'database' => 0,
- 'password' => 'redis12078',
- ],
- 'i18n' => [
- 'translations' => [
- '*' => [
- 'class' => 'yii\i18n\PhpMessageSource',
- 'basePath'=>'@common/messages',
- 'fileMap' => [
- 'common' => 'common.php',
- 'error' => 'errorCode.php',
- ],
- ],
- ],
- ],
- ],
- ];
|