2016-01-02 16:43:18 +03:00
|
|
|
<?php
|
|
|
|
return [
|
|
|
|
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
|
|
|
'components' => [
|
|
|
|
'cache' => [
|
2016-09-05 17:56:03 +03:00
|
|
|
'class' => yii\redis\Cache::class,
|
|
|
|
'redis' => 'redis',
|
2016-01-02 16:43:18 +03:00
|
|
|
],
|
|
|
|
'db' => [
|
2016-07-17 19:13:40 +03:00
|
|
|
'class' => yii\db\Connection::class,
|
2016-01-02 16:43:18 +03:00
|
|
|
'charset' => 'utf8',
|
|
|
|
],
|
|
|
|
'mailer' => [
|
2016-07-17 19:13:40 +03:00
|
|
|
'class' => yii\swiftmailer\Mailer::class,
|
2016-01-02 16:43:18 +03:00
|
|
|
'viewPath' => '@common/mail',
|
|
|
|
],
|
2016-01-03 03:18:37 +03:00
|
|
|
'security' => [
|
|
|
|
'passwordHashStrategy' => 'password_hash',
|
2016-02-14 20:50:10 +03:00
|
|
|
],
|
|
|
|
'redis' => [
|
2016-07-17 19:13:40 +03:00
|
|
|
'class' => yii\redis\Connection::class,
|
2016-02-14 20:50:10 +03:00
|
|
|
],
|
2016-04-12 00:46:44 +03:00
|
|
|
'amqp' => [
|
|
|
|
'class' => \common\components\RabbitMQ\Component::class,
|
|
|
|
],
|
2016-09-06 12:56:39 +03:00
|
|
|
'guzzle' => [
|
|
|
|
'class' => \GuzzleHttp\Client::class,
|
|
|
|
],
|
2016-01-02 16:43:18 +03:00
|
|
|
],
|
2016-06-16 11:00:16 +03:00
|
|
|
'aliases' => [
|
|
|
|
'@bower' => '@vendor/bower-asset',
|
|
|
|
'@npm' => '@vendor/npm-asset',
|
|
|
|
],
|
2016-01-02 16:43:18 +03:00
|
|
|
];
|